Is it possible to generate multiple requests using record producer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2016 10:36 AM
We have a requirement for ess portal to submit multiple requests using one form. Not the OOTB.
So I created a Record Producer and having a UI Page called in a field. When I enter all the record producer fields and click 'Add to Cart' button(UI Page), it stores the information like the UI below. Now I want each row to be stored as Request item under one Request. So for example: 1 Request having 3 Request items.
Is this possible using record producer? or any other solution?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2016 12:25 PM
You can still may be do the script way instead of form on submit. But coming to your question of redirect to thank you page.
General pattern would be
producer.redirect = RequestThankyou.do?sysparm_id="+ current.sys_id but in your case requestSys
It would depend however on how you are using the sys id in that thank you page to display further information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2016 02:09 PM
Thanks for all the help Venkat. Unfortunately the requirement has changed now.:(
Is it possible to redirect end user to a the service catalog form page based on the drop down options he has selected? I still wanted to use the same record producer and 'submit' button to take him to actual service catalog form.
Record Producer script:
current.setAbortAction(true);
producer.redirect="com.glideapp.servicecatalog_cat_item_view.do?sys_id=1ebf2c4c3721c60006c11f9543990ea7";
producer.redirect does not work, it says 'Not authorised' after I submit.
selecting above options redirect the user to the below form
any other options if record producer is not possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2016 02:42 PM
Hi,
One option is to use a iframe dynamic content block (with a name gsft_main) and point the source of it to producer and then allow the redirection to take place from there when the user clicks the submit button. That should take care of this situation.
The other way would be create a form block in standalone html and then pass the values of the form as sysparm query and call the catalog item form directly and circumvent the redirect. Even that might work within an iframe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2016 03:38 PM
Calling record producer in iframe
record producer script
When I submit record producer I get 'Not authorized' on blank page. why?
I don't want to use a html form and do a sysparm_query, because we have some ui policies for each form field and that might get affected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2016 03:53 PM
Hi,
Check the roles on the catalog item and category it belongs to against the user logged in. I have faced the Not Authorized issue mainly because of that. Because if you go to the UI page com.glideapp.servicecatalog_cat_item_view.do, it checks for authentication first.