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

Plausibility Check for Fields in FPM

Hi Experts,

When I add a fixed value list to a field, there is an automatic plausibility check, if the entered value is in the fixed value list. If the value is not in the list, an error message appears and the the field is highlighted red. You have to enter a valid value or delete the value before the message dissapears and the field color returns to white.

Now my question. Is there a possibility to implement such a check manually? I know the Methods in the Feeder-Class and I know how to implement an error message. But can I highlight the checked field (I know I can use collors for every field, but i don't want to implement a "collor handling" for every single field in my application) and can I check in Flush method or an other method if there are highlighted fields that have to be checked?

Thanks and regards,

Sebastian

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Oct 09, 2014 at 10:53 AM

    Hi Sebastian,

    IF_FPM_GUIBB_LIST~PROCESS_EVENT method is more appropriate place where you can do such check. You wrote you know 'how to implement an error message', just fill in REF_NAME (column name) and REF_INDEX (row index) fields in ET_MESSAGES parameter.

    Kind regards, Aliaksandr.

    Add a comment
    10|10000 characters needed characters exceeded

    • Unfortunately that does not workt everytime.

      even if i do pass Ref_INDEx and REF_NAME (or ref_names as table ), neither the row nor the column is highlighted if the field with name ref_name is not editable.

      (That might be quite reasonable on the fist view, but i think it is not necessary. In my case, i have the information about the reference coming fom the outsie and want to link ot this field, even it is not editable. But that will only be possible by writing more own code. Not good. )

      Regards,

      Uli

  • author's profile photo Former Member
    Former Member
    Posted on Oct 09, 2014 at 11:44 AM

    Two more questions. Is there a posibility to see in the nex round trip, which field was highlighted, so that I can check the value again and delete the message. And how can I delete the message?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 09, 2014 at 11:01 AM

    Hi Seastian,

    the above check that you mentioned regarding domain fixed values is done automatically by the WDA framwork.

    For manual checks e.g. in feeder method GET_DATA or PROCESS_EVENT you have to use exportig parameter ET_MESSAGE and provide for each message at least the REF_NAME, i.e. the corresponding field name, to enable the field reference (red for error, yellow for warning).

    The outcoming messages will pass the FPM Message Manager (->delete of duplicates, message mapping) and will finally reach WDA message manager.

    Regards,

    Simon

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 18, 2016 at 12:30 PM

    HI Sebastian

    I have requirement to set the radio button to yes position in Person injured tab it another input field has a specific value & I am writing the logic in get_data method and updating the node (personal involved) but this is not working for me i have to press save again to save the data ,in first save it juts changed the value at screen but not at database level .

    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.