Quantcast
Viewing all articles
Browse latest Browse all 4841

Re: How to dynamically insert in an MDO

Saumya,

  If I understand your query correctly, you have to do a insert dynamically, and you would pass the attributes at runtime.

 

Let us consider an example that we have a scenario where we determine that we need to insert two columns, Assuming that we know the MDO and its attributes.

 

If we are directly calling Illuminator URL, then

http://localhost:50000/XMII/Illuminator?server=MDOConnector&Mode=Insert&MDO=MyMDOPath&<This attribute list we pass the >

For direct web calls, it would be used quite easy, use as many AttributeName.x and AttributeValue.x in ascending order as the number of columns in MDO. Then make a http call via JS/Jquery/AJAX

 

However, if we do the same thing through a transaction, then we would not be able to use the configuration dialog. We need to use the link editor to dynamically generate links.

 

This is how it can be done, I am not sure how links can be generated dynamically, however, we can use the same concept as we used in web page. Generate the URL dynamically.

 

"server://XMII/Illuminator?server=MDOConnector&Mode=Insert&MDO=TufaleAshai/MIIOBJ/MDO1&&content-type=text/xml&AttributeName.1=ID&AttributeValue.1=100&AttributeName.2=Name&AttributeValue.2=Hunter"

 

The Attribute Name and Values(URL in bold) can be concatenated to form as many pairs we want. Append it to out base URL(URL in Italics) and the do a HTTPPost. Image may be NSFW.
Clik here to view.
MDO_TRX.PNG

 

Here we may not be using the the standard query action block to do the job, but this would achieve the purpose.

 

Regards

Tufale Ashai.


Viewing all articles
Browse latest Browse all 4841

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>