Is it possible to change the value of the name attribute for

Posted by Rom Elwell on 30-Jan-2013 10:09

Given the following code snippet:

        dsDynHdl:ADD-RELATION(parentHandle, childHandle,compositeRelFields,FALSE).

Is it possible to define a name value for this relationship at runtime so that the corresponding XSD generated for this ProDataSet reflects the new name value?

   <xs:appinfo>

      <msdata:Relationship name="RELATION1" msdata:parent="DYNttEmployee" msdata:child="DYNttBonusTrx" msdata:parentkey="empid" msdata:childkey="emp_id" />

    </xs:appinfo>

All Replies

Posted by Håvard Danielsen on 05-Feb-2013 15:57

I would assume you can just set it as follows:

     assign

           myrelation =  dsDynHdl:ADD-RELATION(parentHandle, childHandle,compositeRelFields,FALSE)

           myrelation:name = "RELATION1".

Note that I did not test this...

This thread is closed