The CreatorCon Call for Content is officially open! Get started here.

Is it possible to generate multiple requests using record producer?

Community Alums
Not applicable

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?

find_real_file.png

10 REPLIES 10

venkatiyer1
Giga Guru

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.


Community Alums
Not applicable

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.


find_real_file.png


selecting above options redirect the user to the below form


find_real_file.png



any other options if record producer is not possible?


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.


Community Alums
Not applicable

Calling record producer in iframe


find_real_file.png


record producer script


find_real_file.png



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.


venkatiyer1
Giga Guru

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.