Professional Documents
Culture Documents
If you want to enable a button through Applet User Properties (With out scripting)
Name Val.ue
Named Method: Test 'INVOKE', ' Test '
After enabling the button what need to happen if we click on the button.
If you want to make the field as required at UI Level and you need to get the popup
message
if(actBC.GetFieldValue("Field Name")=="")
{
theApplication().SWEAlert("Please enter the So and so field");
return("CancelOperation");
}
if(actBC.GetFieldValue("Field Name")=="")
{
theApplication().SWEAlert("Please enter the so and field name");
return("CancelOperation");
} //END:
}
Use of Set and Get Profiles:
if(Disp.indexOf("Conc")>=0)
{
TheApplication().SetProfileAttr("ConSysCreated",1);
CreateConcession();
}
In the above condition if condition is satisfied the profile attribute will set as “1”
Current functionality is: It will display the non closed and cancelled and rejected Service
requests only. For this the search spec is
[Status Show]='Y' AND [Status] <> 'Closed' AND [Status] <> 'Cancelled' AND [Status]
<> 'Rejected' AND [Status] <> 'Not-Satisfactory'
For adding the additional Search spec for filtering based on Today + 2
([Respond By] <= (Today() + 2)) AND [Status Show]='Y' AND [Status] <> 'Closed'
AND [Status] <> 'Cancelled' AND [Status] <> Rejected ' AND [Status] <> 'Not-
Satisfactory'
function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)
{
/*if (MethodName == "TestRide")
{
CanInvoke = "TRUE";
return (CancelOperation);
}*/
if (MethodName == "TestAddress")
{
CanInvoke = "TRUE";
return (CancelOperation);
}
//Added
if (MethodName == "NewQuery" || MethodName == "RefineQuery")
{
CanInvoke = "FALSE";
return (CancelOperation);
}//End
return (ContinueOperation);
}
try
{
var svc = TheApplication().GetService("Business Service Name");
var inputs = TheApplication().NewPropertySet();
var outputs = TheApplication().NewPropertySet();
svc.InvokeMethod("Method Name in BS",inputs,outputs);
var prompt = outputs.GetProperty("prompt");
return(prompt);
}
catch(e)
{
throw(e);
}
finally
{
var svc = null;
var inputs = null;
var outputs = null;
var prompt = null;
}