If on motion under this rule judgment is not rendered upon the whole case or for all the relief asked and a trial is necessary, the court, by examining the pleadings and the evidence before it and by listening to counsel’s contentions in a hearing shall ascertain what material facts exist without substantial controversy and what material facts are actually and in good faith controverted. Upon issuing its decision, the court shall make an order specifying the facts that appear without substantial controversy, including the extent to which the amount of damages or other relief is not in controversy, and directing such further proceedings in the action as are just. Upon the trial of the action, the facts so specified shall be deemed established, and the trial shall be conducted accordingly.