DXL script to insert OLE object, object text based on object ID and module name

DXL script to insert OLE object as Icon with Label as document name, object text based on object ID and module name from a CSV file.

 

string docName = "c:\\Vani\\xx.docx"

Object obj = current

if (oleInsert(obj, obj."Object Text", docName, true))

{     print "Successfully embedded document\n" }

else

{     print "Problem trying to embed document\n" }


VaniB - Tue Aug 28 00:22:27 EDT 2018

Re: DXL script to insert OLE object, object text based on object ID and module name
davidcs - Tue Aug 28 13:57:15 EDT 2018

What is the question? ... 

Re: DXL script to insert OLE object, object text based on object ID and module name
VaniB - Tue Aug 28 22:34:28 EDT 2018

davidcs - Tue Aug 28 13:57:15 EDT 2018

What is the question? ... 

DXL script to insert OLE object as Icon with Label as document name, object text based on object ID and module name by reading data from a CSV file.

 

Re: DXL script to insert OLE object, object text based on object ID and module name
Mike.Scharnow - Wed Aug 29 16:50:52 EDT 2018

VaniB - Tue Aug 28 22:34:28 EDT 2018

DXL script to insert OLE object as Icon with Label as document name, object text based on object ID and module name by reading data from a CSV file.

 

still it is unclear what you ask.

You already found the way to insert OLE object as Icon. 

You found the parameter to add the OLE to Object Text attribute.

You already found that there is no parameter to change the label of the OLE, and I'm sure you used google to find https://www.ibm.com/developerworks/community/forums/html/topic?id=5c561ff7-6a32-43f7-8afc-1842d103c72e

 

So, what do you need? How to read lines from a CSV file?

 

Re: DXL script to insert OLE object, object text based on object ID and module name
VaniB - Tue Nov 06 02:11:43 EST 2018

Mike.Scharnow - Wed Aug 29 16:50:52 EDT 2018

still it is unclear what you ask.

You already found the way to insert OLE object as Icon. 

You found the parameter to add the OLE to Object Text attribute.

You already found that there is no parameter to change the label of the OLE, and I'm sure you used google to find https://www.ibm.com/developerworks/community/forums/html/topic?id=5c561ff7-6a32-43f7-8afc-1842d103c72e

 

So, what do you need? How to read lines from a CSV file?

 

Read the data from CSV file which as details namely object ID, Module path, object Text, OLE file path and insert the OLE object in that module.

Re: DXL script to insert OLE object, object text based on object ID and module name
Mike.Scharnow - Tue Nov 06 04:20:59 EST 2018

VaniB - Tue Nov 06 02:11:43 EST 2018

Read the data from CSV file which as details namely object ID, Module path, object Text, OLE file path and insert the OLE object in that module.

[General ranting] Well, as we told you before, in this forum developers help other developers to solve specific problems that occur during programming, like how to deal with 64 bit issues, how to achieve a dynamic update of a GUI attribute etc.  If you want someone to program a complete solution for you, you will need to hire a DOORS expert with DXL programming skills, like in https://www.freelancer.de/projects/c-programming/csv-export-from-doors-dxl/ or you will have to teach yourself DXL programming.[/General ranting]

 

Concerning how to read from a CSV file, I googled at bit for you and found the following post: https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014954516 which contains a script that has functionality to read from a CSV file, split a line into values using a defined seperator, deal with quoted strings etc. This should help you