Service Portal - set value of field in record producer

vzvinny
Kilo Explorer

Hey,

I'm trying to set the value of an input field in a record producer from the Service Portal widget's client or server script.

I have no problems using functions like g_form.setValue() on normal catalog items, but I'm lost with how to manipulate anything in a record producer.

Thanks

11 REPLIES 11

I'm currently on patch 4.


Hi Vincent,



We're on patch3 and having the same issue. The g_form is not present in $scope.page at all.



At the moment I'm doing it the ugly way



$scope.data.sc_cat_item._fields["IO:4eeda9c2dbbeee002583bedffe961969"].value = value;



which I don't like.



Hopefully it will be fixed and applied soon.




Cheers



Greg


Hey Greg,



Are you loading your embedded widget on the client or server side?


Also, are you using this script on the embedded widget itself or the widget that calls the embedded widget?


I am having some trouble accessing the ._fields vallue of my widget.



Thanks


Hi Vincent,



I'm using Client Script in a copy of SC Catalog Item widget:



set field value.png




Cheers



Greg


Hopefully it will be fixed and applied soon.


I would suggest trying to replicate your issue on a developer instance.