Re: .NET API CreateField example using VBS (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE Thank you all for your responses. It seems the CreateField option may not be the most straight forward approach. Your responses have given me some other ideas though. Thanks again, Christopher Michaud Remedy System Administrator/Developer US Army Medical Information Technology Center (USAMITC) Core Technology Division - Systems Engineering Branch Office: 210.295.3589 DSN: 421-3589 -Original Message- From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Misi Mladoniczky Sent: Thursday, September 04, 2008 12:47 AM To: arslist@ARSLIST.ORG Subject: Re: .NET API CreateField example using VBS (UNCLASSIFIED) Hi, I would use a supporte API to do something like this, namely C or Java. Most wrapper-APIs has concentrated on reading/writing data to forms, and as a second priority to read information about forms/fields/filter etc. The third priority has been to implement the creation of admin-objects in the server. One solution could be to copy the field with ARGetField from a source form, and then create a duplicate in the other forms. This should work if the field does not belong to ANY view. If the field is supposed to be visible, you will need to handle different view-ids on different forms in the ARDisplayInstanceList. Another favourite of mine is to export the form definitions to a file (def or xml), manipulate it (add your field to the forms), and finally reimport it. Best Regards - Misi, RRR AB, http://www.rrr.se Products from RRR Scandinavia: * RRR|License - Not enough Remedy licenses? Save money by optimizing. * RRR|Log - Performance issues or elusive bugs? Analyze your Remedy logs. * RRR|Translator - Manage and automate your language translations. Find these products, and many free tools and utilities, at http://rrr.se. Classification: UNCLASSIFIED Caveats: NONE All, Does anyone have a VBS example of the syntax required to use the CreateField method, and if possible setting the properties of the new field, using the .NET API? I need to loop through many forms and add the same field and it seems this might be the most efficient way. Thank you, Christopher Michaud Remedy System Administrator/Developer US Army Medical Information Technology Center (USAMITC) Core Technology Division - Systems Engineering Branch Office: 210.295.3589 DSN: 421-3589 Classification: UNCLASSIFIED Caveats: NONE ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are -- This message was scanned by ESVA and is believed to be clean. ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are Classification: UNCLASSIFIED Caveats: NONE ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are
Re: .NET API CreateField example using VBS (UNCLASSIFIED)
You may want to take a look at driver.exe to do this. You will find information about in the C API Reference manual. Scott Parrish IT Prophets, LLC (770) 653-5203 www.itprophets.com -Original Message- From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Michaud, Christopher W Mr CTR USA MEDCOM Sent: Wednesday, September 03, 2008 5:09 PM To: arslist@ARSLIST.ORG Subject: .NET API CreateField example using VBS (UNCLASSIFIED) Classification: UNCLASSIFIED Caveats: NONE All, Does anyone have a VBS example of the syntax required to use the CreateField method, and if possible setting the properties of the new field, using the .NET API? I need to loop through many forms and add the same field and it seems this might be the most efficient way. Thank you, Christopher Michaud Remedy System Administrator/Developer US Army Medical Information Technology Center (USAMITC) Core Technology Division - Systems Engineering Branch Office: 210.295.3589 DSN: 421-3589 Classification: UNCLASSIFIED Caveats: NONE ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are
Re: .NET API CreateField example using VBS (UNCLASSIFIED)
.NET API does include a FieldLabelChanger C# program as source. As the name indicates, this program allows for changing labels of fields on a selected view of a selected form. Internally it does a SetField API method call after altering a display property (label). You will get sufficient hints about how to go about the CreateField usage I hope. As said this is in C#. And .NET API itself, while supports COM usage (thus in VBS), it is better used in .NET environments (C#, VB.Net) - so prefer to use it in those environments if at all possible, especially for heavy duty usage like creating/manipulating form/field definitions. Regards Appajee -Original Message- From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Scott Parrish Sent: Wednesday, September 03, 2008 2:16 PM To: arslist@ARSLIST.ORG Subject: Re: .NET API CreateField example using VBS (UNCLASSIFIED) You may want to take a look at driver.exe to do this. You will find information about in the C API Reference manual. Scott Parrish IT Prophets, LLC (770) 653-5203 www.itprophets.com -Original Message- From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Michaud, Christopher W Mr CTR USA MEDCOM Sent: Wednesday, September 03, 2008 5:09 PM To: arslist@ARSLIST.ORG Subject: .NET API CreateField example using VBS (UNCLASSIFIED) Classification: UNCLASSIFIED Caveats: NONE All, Does anyone have a VBS example of the syntax required to use the CreateField method, and if possible setting the properties of the new field, using the .NET API? I need to loop through many forms and add the same field and it seems this might be the most efficient way. Thank you, Christopher Michaud Remedy System Administrator/Developer US Army Medical Information Technology Center (USAMITC) Core Technology Division - Systems Engineering Branch Office: 210.295.3589 DSN: 421-3589 Classification: UNCLASSIFIED Caveats: NONE ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are