POST REST

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2016 06:04 PM
Hi ,
I am trying to do integration for the first time and needed some help.
We have REST API's for GET and POST calls. Figured out how to use GET REST and populate the data.
All this is for a new custom application which we are trying to create. Once the record is created. I want to send post call with all the details from the record.
Things i need help.
1) I have configured REST API, i need to call the REST API and send all the data from record.
2) Steps to do the above.
Let me know what else you need me to provide for help.
Thanks,
Raghu.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2016 09:57 PM
One more question,
is there a way where i can define a variable and use it globally.
lets say that i have a variable xxxxxx = something in one client script.
Can i call xxxxx from another client script.
Thanks,
Raghu.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2016 10:05 PM
I never got this requirement of "sharing" with in client scripts. Client scripts, which will have javascript run in browsers itself. One idea i got now is using "data" attributes of fields.
In one client script, set like this:
$(field1).setAttribute('data-col1','val1');
In another client script, you can get it like below.
$(field1).getAttribute('data-col1');

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2016 10:07 PM
makes sense, Thanks . I will try this method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2016 10:19 PM
Here is something, I tested now. Idea was working, needs to make small syntax change.
In 1 client script, use below statement.
g_form.getElement("u_col1").setAttribute('data-col1',10);
In another client script, you can access with below statement.
g_form.getElement("u_col1").getAttribute('data-col1');

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2016 10:27 PM
Ram ,
I think you got this wrong, I wanted to define an element in script and use that in another script.
I don't want that to be physically present on record.