Skip to Content
author's profile photo Former Member
Former Member

Read data on click of a button

Dear Experts,

i have a critical requirement where in i need to default some text in the form on clicking a button on the form.

I have created an ISR button on the form and created a new backend generic service to default the text on the form. The generic service works fine.

Now when i click the button on the form, my generic service is getting called and at the same when i click "Check and send" button the same generic service gets called.

So i now want to check inside my generic service, when my button is getting called and when "Check and send" gets called so that i can restrict my piece of code from getting executed for check and send alone.

Is there a way? Appreciate your help.

thanks,

regards,

sridharan

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 07, 2010 at 01:29 PM

    Seriously?!?!! So you have learned just enough about HCM Processes and Forms to be dangerous eh?

    Learn about RULES. That will solve that problem for you.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2010 at 02:45 PM

    Hi Cris,

    I am not so new to HCMp&F, but just that i havent worked on this scenario for reading the data on click of a button. I am working on the requisition form and there are already a few ISR buttons on the form to get the pop up for positions and brach details.

    I'am just trying to understand the deeper concept of how the scripting works and how to control the request from an ISR button on the form.

    Can you share some thought how can creating a RULE solve this issue. Thanks.

    Regards,

    Sridharan

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Christopher Solomon

      @Solomon

      Hi! I don't think I misunderstood your response. Setting up User Events is not a given, especially for some users who are getting started with HCM PF (Note how he's never returned data on a button click? Dead give away, IMO). So detailing that option would have probably been helpful to avoid all the mapping, field additions, javascript, etc. that comes w/ rules and flag fields. Also, User events aren't CRAP, haha, they have their purpose and can serve it well so long as the process is designed correctly.

      I'm well aware of rules and how they are used, but for the scenario in question I'm not so sure that would be the correct approach. It's like using a grenade to rid yourself of an anthill when a simpler solution might suffice... I guess the initiator of this post would have to make that determination. Of course, though, he would need to be better informed.

      It is for this reason I responded to this post. Lets keep our people informed!

      Cheers mates

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.