Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to set a value in a field of a datasource

    What I'm trying to achieve is simple. I just want to hardcode a string in a field. I tried things like this below:

    Code:
    <field name="display_value_eng" length="355" type="text" customSQL="true" hidden="true" value="apple"/>
    i tried to add the tag value inside of one operation binding but still not working

    Code:
    <binding operationType="add" serverMethod="saveCarrierCode">
                <serverObject lookupStyle="spring" bean="codeMaintenanceUIHandler" />
                <value fieldName="display_value_eng" value="apple"/>
    ​​​</binding>
    Any Ideas? I don't care if the field need to display that value or not to the user. What I just want is that the moment of save, this value get saved in the database.



    #2
    Your second attempt is closer but your tag name is wrong - it's operationBinding.values, you have just "value".

    Comment


      #3
      Thank you very much for the quick response.

      Comment

      Working...
      X