can we create multiple request items from a single request with out using order guide
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2016 03:01 AM
we have a requirement to create multiple request items from a single request with out using order guide. It should look like order guide with multiple tabs. I tried by adding 'Rule Base' related list to catalog item form, but when I try to add new rule for this list it's not showing the condition. When I click on + icon of 'If this condition is true' to add condition, it showing message as 'First select a table'. But in case of order guide it's working fine.
- Labels:
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2021 03:49 AM
could you please Post the ScreenShot?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2021 05:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2021 06:54 AM
Go to UI Action and Check for Add New Item button is Active or Not.
Else
Create new UI Action named Add New Item on Request[sc_request] table
Check for Active, Show Update, Client, Form Button.
OnClick : addCatalogItem();
Condition : current.request_state == 'requested'
and Add following Script for it
function addCatalogItem() {
var prequest = gel("sys_uniqueValue").value;
var dialogClass = window.GlideModal ? GlideModal : GlideDialogWindow;
var gDialog = new dialogClass("dialog_add_item");
gDialog.setPreference('prequest', prequest);
gDialog.setPreference('table', 'add_catalog_item');
gDialog.setTitle('Add Catalog Item');
gDialog.render();
}
function validateNewItem() {
var item = $("item_ref_field");
var quantity = gel("myquantity");
var problem = false;
if (item.value == "") {
highlightRow("itemrow", true);
problem = true;
} else
highlightRow("itemrow", false);
if (quantity.value == "") {
highlightRow("quantityrow", true);
problem = true;
} else
highlightRow("quantityrow", false);
if (problem)
return false;
hideRow("itemrow", true);
hideRow("quantityrow", true);
hideRow("dialogbuttons", true);
hideRow("poll_img", false);
return true;
}
function highlightRow(rowName, doHighlight) {
var row = gel(rowName);
if (doHighlight)
row.style.backgroundColor = '#FFFACD';
else
row.style.backgroundColor = '';
}
function hideRow(rowName, doHide) {
var row = gel(rowName);
if (doHide)
row.style.display = "none";
else
row.style.display = "block";
}