n_parm lnv_parm
lnv_parm.uf_set("order_id", ll_order_id)
lnv_parm.uf_set("order_date", ldt_order_date)
lnv_parm.uf_set("last_name", ls_last_name)
lnv_parm.uf_set("record_is_new", true)
lnv_parm.uf_set("first_work_day_in_month", 31)
lnv_parm.uf_set("last_companies_worked", ls_last_companies_worked[]) // array
lnv_parm.uf_set("str_address", lstr_address) // structure
lnv_parm.uf_set("n_emp", inv_emp) // NVO
lnv_parm.uf_set("cb_details", cb_details)
lnv_parm.uf_set("ds_details", ids_details)
OpenWithParm(w_finish, lnv_parm)
n_parm lnv_parm
lnv_parm = Message.PowerObjectParm
il_order_id = lnv_parm.uf_get("order_id")
idt_order_date = lnv_parm.uf_get("order_date")
is_last_name = lnv_parm.uf_get("last_name")
ib_record_is_new = lnv_parm.uf_get("record_is_new")
id_first_work_day_in_month = lnv_parm.uf_get("first_work_day_in_month") // runtime error! It's "integer", not "date"!
ls_last_companies_worked[] = lnv_parm.uf_get("last_companies_worked")
istr_address = lnv_parm.uf_get("str_address")
lnv_emp = lnv_parm.uf_get("n_emp")
lcb_details = lnv_parm.uf_get("cb_details")
lds_details = lnv_parm.uf_get("ds_details")
if lnv_parm.uf_exists("ds_optional") then
lds_optional = lnv_parm.uf_get("ds_optional")
end if
DataStore lds_empty
lnv_parm.uf_set("ds_details", lds_empty)
if not lnv_parm.uf_exists("ds_mandatory") then f_throw(PopulateError(0, "Parameter 'ds_mandatory' not passed.")) // f_throw: code.intfast.ca/viewtopic.php?f=2&t=1
lds_mandatory = lnv_parm.uf_get("ds_mandatory")
lnv_parm.uf_set(lnv_parm.COUNTRY_OF_BIRTH, ls_country_of_birth) // source object's script
...
is_country_of_birth = anv_parm.uf_get(lnv_parm.COUNTRY_OF_BIRTH) // target object's script
lnv_parm.uf_set("country of birth", ls_country_of_birth) // source object's script
...
is_country_of_birth = anv_parm.uf_get("country of birth") // target object's script
n_parm lnv_parm
lnv_parm.uf_set...
lnv_parm.uf_set...
lnv_parm.ib_positive_response = true // signal that user clicked OK/Yes
CloseWithReturn(parent, lnv_parm)
n_parm lnv_parm
lnv_parm.ib_positive_response = false // signal that user clicked Cancel/No; this line is optional - ib_positive_response is false by default
CloseWithReturn(parent, lnv_parm)
n_parm lnv_parm
OpenWithParm(w_response, lnv_parm)
lnv_parm = Message.PowerObjectParm
if lnv_parm.ib_positive_response then
// ...read the parameters, passed back...
end if
lnv_parm.is_passed_from = "Flow 1"
lnv_parm.uf_set("emp_id", ll_emp_id)
lds_emp = lnv_emp.uf_retrieve(lnv_parm)
lnv_parm.is_passed_from = "Flow 2"
lnv_parm.uf_set("first_name", ls_first_name)
lnv_parm.uf_set("last_name", ls_last_name)
lds_emp = lnv_emp.uf_retrieve(lnv_parm)
lnv_parm.is_passed_from = "Flow 3"
lnv_parm.uf_set("dept_id", ll_dept_id)
lds_emp = lnv_emp.uf_retrieve(lnv_parm)
choose case anv_parm.is_passed_from
case "Flow 1"
ll_emp_id = anv_parm.uf_get("emp_id")
// ...retrieve by Employee ID...
case "Flow 2"
ls_first_name = anv_parm.uf_get("first_name")
ls_last_name = anv_parm.uf_get("last_name")
// ...retrieve by First and Last Names...
case "Flow 3"
ll_dept_id = anv_parm.uf_get("dept_id")
// ...retrieve by Department ID...
case else
f_throw(PopulateError(0, "anv_parm.is_passed_from has invalid value '" + nvl(anv_parm.is_passed_from, "NULL") + "'."))))
// f_throw(): http://code.intfast.ca/viewtopic.php?t=1
// nvl(): http://code.intfast.ca/viewtopic.php?t=5
end choose
ll_serialNo = n_parm.uf_get("serialNo")
if isnull(ll_serialNo) then
if not isnull(n_parm.uf_get("serialNo")) then
ll_serialNo = n_parm.uf_get("serialNo")
if anv_parm.uf_exists("serialNo") then
ll_serialNo = anv_parm.uf_get("serialNo")
end if