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

FormDataEvent

Hi All,

I have struct with a problem, i have a base document (Request)where it has a field "No of Openings" and it has some integer value.

I need to copy this to the target document(Post) and this to another target document(Interview).

In the Interview document i have the field "Selected Candidates" with some integer value.

I have given the logic as the, no of openings (request) - selected candidates(interview) to be stored in the no of openings in the request and i have given this logic in the FormDataLoad event but i dont want to perform this logic every time it loads.

I dont know where to give this logic 😔

Help me solving this issue.

Regards,

Jananisuba S

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 12, 2013 at 01:21 AM

    Hi Jana,

    My suggestion is to calculate only when there is a change in the selected candidates figure.

    In your document life cycle, there should be a state when this candidate is selected and your document will be updated/added with a status 'selected'.

    When such a type of document is posted, do the calculation.

    The event would be in OnAfterDataAdd or OnAfterDataUpdate (depending on your logic).

    Calculate the no of openings (request) - selected candidates(interview) here

    And store it somewhere in table.


    Regards

    Edy

    Add a comment
    10|10000 characters needed characters exceeded

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.