Portal- Refreshing embedded widgets by option value

vzvinny
Kilo Explorer

In my Service Portal widget, I have an embedded widget that I am passing different record producer sys ID's into.

The approach I'm taking is using the client script to pass data to the server script as input.

The problem I'm seeing is that once the widget is loaded, I can't reload that widget using different option values.

HTML

          <sp-widget widget="c.data.recordProducerWidget"></sp-widget>

Client Script

$scope.showRPSoftware = function() {

  $scope.data.someID = "12345abcd";

  spUtil.update($scope);

  }

Server Script

data.recordProducerWidget=$sp.getWidget("sc-catalog-item", {sys_id: input.someID});

Any insight into how I can dynamically reload a widget from a client script would be great.

Thanks

7 REPLIES 7

Serkan,



Use broadcast to send any variable to another widget and "selamlar eger Turksen "


Merhaba Verda,



Thank you for your help!



Selamlar


I'm getting the exact same... "undefined"