Cannot access to the $sp object through my server scrpt

andreadigiu
Tera Contributor

Hi all,

I ve implemented an Assigment action by a serve side script whis is correcly executed when pushing the linked button.

I need to access my current page parameters (and properties) to elaborate server side updating. 

But if I try to access the $sp object is result as null!!! Here is my server code....

andreadigiu_0-1751626604492.png

 

Any idea please?

How do I access to my current page info?

Thanks

6 REPLIES 6

Yes @Community Alums, you're absolutely correct 'Current' is available in actions and $sp in portal widgets
@andreadigiu Please try as Tejas Suggested.

Thanks & Regards
Mayank

Yes but I need the sysId passed to the web page not the sysId of current record which I assume is the sysid of the selected record... The sysid passed to the web page is the sysid of another record, of a different table... My page includes a form for this record the syid passed to the page and includes list of records of another table.. When one ofore of this records are selected and the action button is pressed my script is invoked but there, in the script I need both the current record and the sysid passed to the page... My page is part of a portal experience of one of my application.. I do I access to the web page info?? If this is not possible that S a severe limitation on server elaboration which actually can access just to the selected record info.

Is Amy kind of solution?