can we create multiple request items from a single request with out using order guide

Hemu1
Giga Contributor

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.

12 REPLIES 12

could you please Post the ScreenShot? 

 

find_real_file.png

Go to UI Action and Check for Add New Item button is Active or Not.

Else

find_real_file.png

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";
}