- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2024 10:15 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2024 03:22 PM
Please also take a screenshot of the other field - promptstructure.
But even from this screenshot a problem can be seen: type is of type String in which you are looking for a sys_id.
That is theoretically possible but very NOT likely.
So the problem could be line
serviceTypeGR.addQuery('type', selectedType);
in the Script Include.
It is possible and likely that what you mean is:
serviceTypeGR.addQuery('sys_id', selectedType);
which can be short-handed to:
...
// Query the 'ServiceType' table and retrieve questions
var serviceTypeGR = new GlideRecord('x_1296451_legaladv_servicetype');
if (serviceTypeGR.get(selectedType)) {
gs.addInfoMessage('serviceoog' + serviceTypeGR);
promptStructure = serviceTypeGR.getValue('promptstructure');
}
gs.addInfoMessage('promptStructure ' + promptStructure);
...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2024 03:22 PM
Please also take a screenshot of the other field - promptstructure.
But even from this screenshot a problem can be seen: type is of type String in which you are looking for a sys_id.
That is theoretically possible but very NOT likely.
So the problem could be line
serviceTypeGR.addQuery('type', selectedType);
in the Script Include.
It is possible and likely that what you mean is:
serviceTypeGR.addQuery('sys_id', selectedType);
which can be short-handed to:
...
// Query the 'ServiceType' table and retrieve questions
var serviceTypeGR = new GlideRecord('x_1296451_legaladv_servicetype');
if (serviceTypeGR.get(selectedType)) {
gs.addInfoMessage('serviceoog' + serviceTypeGR);
promptStructure = serviceTypeGR.getValue('promptstructure');
}
gs.addInfoMessage('promptStructure ' + promptStructure);
...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2024 04:01 PM
Thanks 😀😀 its work on Script Include but not generate popup on client side please help if you find something
My Client Script :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2024 04:20 PM
The client script has several problems:
- it is GlideModal (NOT GlideDialogWindow) that supports renderWithContent()
- neither GlideDialogWindow or GlideModal has a method called show()
- even if they did, the dialog is already displayed when calling method renderWithContent() - assuming the code is updated to use GlideModal
- that means that everything that comes after renderWithContent() has no use
- depending on use case, the proper solution might be not a Script Include and GlideAjax, but a UI Page.
So before going forward, what is the business requirement (or experiment requirements) that you are trying to fulfill here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2024 04:26 PM
My requirement when user select the type that time generate the pop which show value of prompt structure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 02:10 PM
As i check in my instance i dont have GlideModal only have GlideDialogWindow.
can you tell me how to render html in GlideDialogWindow ?
i cant get g_form.getUniqueValue so Could provvide me reason why?