zava
Elite Observer

ValueService and FS_DATASET

Jump to solution

Hi Community,

is it possible to set a FS_DATASET's value via ValueService?

It's working with string, and similar, but I can not find the way to set a dataset, or similar Smiley Happy.

best regards,

zava

0 Kudos
1 Solution

Accepted Solutions
rkurz
Elite Observer

Hi Antonio,

just a quick guess, maybe this could help you:
Use a DatasetContainer instead of an Entity as the return value http://www.e-spirit.com/odfs51/Template-development/Template-syntax/Data-types/DatasetContainer/

Best Regards

Ralph

View solution in original post

0 Kudos
7 Replies
vijay1v
I'm new here

It depends what you want to do in rules.

Ex:

<RULES>

<ON_EVENT>

        <IF>

            <PROPERTY source="st_dish" name="FOCUS"/>

        </IF>

        <WITH>

            <PROPERTY source="st_supplier" name="VALUE"/>

        </WITH>

        <DO>

            <PROPERTY source="st_dish" name="query.supplier_id"/>

        </DO>

    </ON_EVENT>

</RULES>

This code from Rules/Value determination fromFS help documentation.

When particular combo box gets focus, its value is set in to another combobox query id.

So if you use value service, you can set the return value to select the combobox or feed the combo box selection to the value service to do something in the server end.

0 Kudos

Hi Vijay,

I'm using a FS_DATASET...

this is my situation...

Rules

   <ON_EVENT>

      <SCHEDULE service="EntityCreator" id="ec" delay="500">

         <PARAM name="language">

            <PROPERTY source="#global" name="LANG" />

         </PARAM>

      </SCHEDULE>

      <DO>

         <PROPERTY source="csContactPerson" name="VALUE"/>

      </DO>

   </ON_EVENT>

Form Element

<FS_DATASET

    name="csContactPerson"

    allowDelete="no"

    allowEdit="no"

    allowNew="no"

    hFill="yes"

    hidden="no"

    mode="combobox"

    useLanguages="no">

    <LANGINFOS>

      <LANGINFO

        lang="*"

        label="Zur Kontaktaufnahme wenden Sie sich bitte an"

        description=""

        expression="#item.cn + &quot; &quot;+ #item.sn "/>

    </LANGINFOS>

    <SOURCES>

      <CONTENT name="ds_ext_contact_persons"/>

    </SOURCES>

  </FS_DATASET>

and I have a ValueService "EntityCreator" send back a entity.

0 Kudos
rkurz
Elite Observer

Hi Antonio,

where do you expect the Valueservice to work: JavaClient, WebClient or both?

As far as I know, the ValueService in WebEdit isn't able to handle complex datatypes - such as entity.

Best Regards

Ralph

0 Kudos
vijay1v
I'm new here

You can send multiple parameters input to the service and can update the entity which belongs to the passing input dataset.

Eg:

   <ON_EVENT>
      <SCHEDULE service="EntityCreator" id="ec" delay="500">
         <PARAM name="language">
            <PROPERTY source="#global" name="LANG" />

            <PROPERTY source="csContactPerson" name="VALUE"/> 
         </PARAM>
      </SCHEDULE>
      <DO>
         <PROPERTY source="csContactPerson2" name="query.lang_id"/>
      </DO>
   </ON_EVENT>

It is all about how you collect varibale from combobox which bound to dataset and pass it to value service.

It is possible!

0 Kudos
zava
Elite Observer

Hi Ralph,

I'm trying actually only on JavaClient.

0 Kudos
rkurz
Elite Observer

Hi Antonio,

just a quick guess, maybe this could help you:
Use a DatasetContainer instead of an Entity as the return value http://www.e-spirit.com/odfs51/Template-development/Template-syntax/Data-types/DatasetContainer/

Best Regards

Ralph

0 Kudos
zava
Elite Observer

Grande Ralph Smiley Happy

0 Kudos