void defaultFunction(Scenario recID) { recid_list = List(); result = 0; poid = list(); povendlist = list(); for each recval in recID { poid.add(recval); //info recval.Deal.Deal_ID1; povendlist.add(recval.Deal); //info povendlist; } for each linerec in recID { recid_list.add(linerec.ID); line_list = List(); senari_Data = Scenario[ID == linerec.ID]; // senari_Data.Scenario_ID=recid_list; for each line_Data in senari_Data.Services { line_list.add(line_Data); } if(line_list.size() > 0) { } else { result = 1; } } if(result == 0 && povendlist.distinct().size() == 1) { openUrl("#Page:Quotation_Comparison_page?Deal_bg_id=" + senari_Data.Deal.ID + "&Deal_name=" + senari_Data.Deal_Name + "&Dealid=" + senari_Data.Deal.Deal_ID1 + "&scenario_id=" + recid_list + "&Select_Scenario=" + recid_list,"same window"); } else if(result == 1) { info "Please review the record line items"; } else { info "Select the same Deal ID."; //openUrl("#Page:Alert?id1=Select the same Deal ID.&zc_LoadIn=dialog","same window"); } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter