Customer Registartion Number

633 views
Skip to first unread message

banerjee...@gmail.com

unread,
May 27, 2015, 4:02:02 AM5/27/15
to suppor...@runmyprocess.com
Hi Team,

In my web interface i have radio buttons which refers to customer region number,
when the customer registration number, number is new then a blank text box appears, where the user give the new customer registration number.

Now the condition is if, when the user clicks on the submit button, i want to check that whether some other user with this customer registration number has already logged a ticket or not, if the condition is true, then the user is prompted the ticket with this registration number has already been formed, and does not allow the user to log a new ticket.

Can you tell me how to achieve what i am asking for?

Regards,
Somjit

Sweta Suman

unread,
May 27, 2015, 8:50:35 AM5/27/15
to suppor...@runmyprocess.com
Hi,

As you mentioned that you have Radio button which refers to customer region number, I am assuming you have one option as New in radio button list. On selection of new option a text box appear where user can enter new customer registration number. Once customer enter new registration number you can call a Composite API.

CAPI will perform following steps -

1) List call back all data from collection.

2) Check for customer registration number.( e.g if (result[i].cust_regist_no == enetred_regist_no))

   a) Yes - Show prompt message of ticket with the registration number.

   b) No - save records in collection.
   

Alternatively, you can apply similar validation on page submission of button. If button type is "Start Process" then you can write script in "Pre-launch" script.

Hope this helps you.



--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/616b6def-0a64-460c-9074-438a219d7913%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.



--
Thanks,
Sweta 
Fujitsu RunMyProcess Support

Somjit Banerjee

unread,
May 28, 2015, 12:41:13 AM5/28/15
to suppor...@runmyprocess.com
Hi Sweta,

Since the button type is start process, i would like to go to the alternative way, but thing is that when the new customer registration number is being input, and when the user clicks on the submit button, before the process starts i want to find that whether any record or submitted ticket exist with this registration number or not, if it exists then the user is not able to submit and start the process.

So please help me with this?

Regards,
Somjit.

You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/rH9xI96Mi-k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.

Sweta Suman

unread,
May 28, 2015, 3:22:35 AM5/28/15
to suppor...@runmyprocess.com
Hi Somjit,

As I mentioned above, if button type is "Start Process" then you can write script in Pre-launch" script.

Structure of script would be something like below -

function success(result) 
{
    alert("ok=" + JSON.stringify(result));
// code to check whether the entered customer registration number already exist
 if(yes)
 {
    //  You can show prompt message of ticket with the registration number. Form will not be submitted.
 }
 else
 {
    // code to save records in collection
            true;  // process will be called/launched

 }
}

function failure(result)
{
    alert("ko=" + JSON.stringify(result));
}


// list call back from collection

var my_pattern = {};
col_collection.listCallback(my_pattern,{},success,failure);


Hope this helps you.





Reply all
Reply to author
Forward
0 new messages