How to format with GTL within vbscript ?

hi,
i could not found a solution how to use the formating options from GTL within a vbscript
based on e.g. Attribute of a Model
on a Model => i execute a method
Sub %Method%(obj)
   output "CurrentTargetCode =" + "%CurrentTargetCode%"                 ' is working
   output "CODE-1 =" + "%Code%"                                                   ' i get not the code back ?
   output "CODE-2 =" + "%U:CurrentTargetCode%"                            ' is not upper case and not translated ?  
   output "CODE-3 =" + obj.code                                                     ' is working
   output "CODE-4 =" + obj.getattribute("code")                                 ' is working
   output "CODE-5 =" + obj.getattribute("%code%")                          ' raising an error
End Sub
nothin i could use to get an attribute formated back. 
what i realy want is this
output "CODE-7 =" + obj.getattribute("%-10.-3:.code%")          
is there a solution or tipp how to use it from vb scripting ?
/br
ps: i know i could use vbscript formating but i want to use the capability of PD.

Hi,
You need to use the "EvaluateTextFor" method to instanciate GTL processor withing VBScript.
change method content with
<<
output obj.EvaluateTextFor("CurrentTargetCode =" + "%CurrentTargetCode%")
output obj.EvaluateTextFor("CODE-1 =" + "%.L:Code%" )
output obj.EvaluateTextFor("CODE-2 =" + "%U:CurrentTargetCode%" )
output obj.EvaluateTextFor("CODE-3 =" + obj.code )
output obj.EvaluateTextFor("CODE-4 =" + obj.getattribute("code") )
>>
Marc
Edit: The output you expect should then be <<obj.EvaluateTextFor("%-10.-3:.Code%" )>>

Similar Messages

  • How to format with exFAT in DOS command ?

    As title.
    I would like to execute dos command "format" to format some stroage with exFAT file-format.
    How do I do ?
    For example, if I formated E:\ with NTFS, I type the command-line such as "format /FS:NTFS E".
    Thanks.

    Hello,
    I'd do:
    format e: /fs:exFAT
    Further questions on this subject should be asked in the
    Windows forum on Microsoft Community.
    As the Microsoft Community is on a different platform, we cannot move the question for you.
    Once there, click on Participate near the top of the screen, and select 'Ask a Question' or 'Start a Discussion':
    Karl
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • How to interect with applet within browser

    i want to write a jws that can interact with the applet (inside browser)
    sample:
    i write a caculator, all the class are in jlnp(jws) except the interface,
    user only can access and see the interface(applet) when he/she come to my website. (ofcouse ,i just wan to promote my ad).
    so, can give me some hint how to interact jws and applet that within browser,
    like jws to

    Hi
    If your database is oracle 9i you connect to database throgh isqlplus.During the installation of database it diplays http server with port number.Check the port number with 7778
    ExmPLE : HTTP://MACHINENAME:7778/ISQLPLUS
    Regards
    Mohan

  • Loading external swf, how to deal with errors within the loaded swf?

    I have a Flex app that basically lets you browse a bunch of thumbnails that represent swf files, when you click a thumbnail it opens a window that loads the actual swf into an image control. The problem I have is that these swfs can be uploaded by our clients, so they may have actionscript errors being thrown, etc. We can't really predict what they may do. Is there a way I can load these swf in such a way as to ignore any errors that the loaded swf may generate within itself.
    For example, one such swf reads some text from a text file to display, but when they are viewing it in this manner the file isn't there so a stream error is generated. My parent Flex app doesn't care about this error and I don't want to see it thrown up in an actionscript error box (I have debug verison loaded on my PC obviously) or interfere with the parent app in any way.
    Would application domains help at all? Would it make a difference if I loaded the swf into a separate domain? Or is there some way I can generically trap any error coming from the loaded swf and just ignore them?
    Any help appreciated.
    Thanks,
    Marcus

    There is no way to catch errors thrown at random times.  Remember that most folks have the release player which does not show error dialogs.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • How to formate with recovery drive or CD.

    5CG3192D3V

    Maybe see if this link helps?
    How to Perform an HP System Recovery
    Troubleshooting HP System Recovery Problems (Windows 8)
    Performing an HP system recovery (Windows 8)
    Performing an HP system recovery (Windows 7)
    How to Perform an HP System Recovery
    I am a Volunteer to help others on here-not a HP employee.
    Replies aren't online 24/7 because of Time Zone differences.
    Remember in this Day and Age of Computing the Internet is Knowledge at your fingertips if you choose understand it. -2015-

  • How do I import music from a flash drive that was formatted with a windows PC to my MacBook?

    How do I import music from a flash drive that was formatted with a windows PC to my MacBook - the drive is showing it has over 3GB of info on it but none of the files are showing up in finder?  I had backed up my iTunes library on the flash drive about a year and a half ago before I switched from a dell to a MacBook pro.

    What I found works for me is to make sure iTunes keeps the music files organzied in the iTunes Media folder according to album, artists, etc. and that it copies the music files there when adding them to the library.  That way, if something happens to the library, the raw files can always be re-imported again.

  • How to deal with file(for example .xml)? what format of dir should be?

    I'd like to operate the file in disk, and want to use relative directory?
    How to deal with file dir? what format of dir should be?

    Hi Kamlesh,
    Thanks for your response.
    Actually, In the "Process External Bank Statement" window, i see that there are few entries which is for the previous year and which has not been reconciled. I have never worked practically on BRS and hence, i am scared to make any changes in the clients database without being confident on what i am doing. I need to reconcile for one of their Bank a/c for the month of April '08. I have the copy of the statements for the month ending 31st Mar 08 and 30th Apr 08. The closing balances are as below:
    31/03/08 - 2300000.00
    30/04/08 - 3100000.00
    Now my OB for Bank a/c for April '08 in SAP is 2300000.00 Dr.
    When i go to External Bank Reconciliation - Selection Criteria Screen (Manual Reconciliation), here are the detail that i enter:
    Last Balance: INR -7,000,000.00000 (Grayed out by the system)
    Ending Balance: INR -3,100,000.00000 (Entered by me)
    End Date: 30/04/08 (Entered by me)
    "Reconciliation Bank Statement" Screen opens up and shows the below balances in the screen:
    Cleared Book Balance: INR -7,000,000.00000
    Statement Ending Balance: INR -3,100,000.00000
    Difference: INR 3,800,000.00000
    As per the Bank statement, i have found all the transactions listed out here for the month of Apr '08 but, i also found that the open transactions for the previous month from April '08 have been lying in "Process External Bank Statement" window.
    Could you please help me solve my issue as to what needs to be done or could you also get me some links from where i can get few documents for processing External Bank Reconciliations?
    That will be of a great help for me. I need steps as to what needs to be done first and then the next so that i can arrive at the correct closing balance for the month April '08.
    Thanks in Advance....
    Regards,
    Kaushal

  • How to format 9 or 11 digit number with dashes

    Windows Adobe Pro 9.
    Someone please be kind and have mercy on me, I've researched this issue for 5 hours now and cannot resolve it on my own.
    I have a text field where the user will enter either a 9 digit or 11 digit number separated with dashes. If the number entered is 9 digits, it should appear as
    XX-XXXXXXX. If 11 digits, it should appear as XX-XXXXXXX-XX. If only 9 digits are entered, the -XX at the end must be omitted.
    I found a javascript that showed how to allow a varying number of digits, and I also found one that showed how to cause the dash to be entered, but I'm not smart enough to know how to combine the two. I've only used one other javascript before (how to format the time 12:00 am, with a gigantic thanks to Mr. George Johnson), so I know that I must put the script in "Advanced > Document Processing > Document JavaScripts." I think then I would go into the text field format and select "custom," and enter a keystroke and format script???
    Any help will be greatly appreciated.
    thanks
    alice

    Hi Mr. Johnson,
    When I copied the first part of the code into the document-level javascript editor box and hit okay, it gives this message:
    SyntaxError: return not in function
    8: at line 9
    and the cursor moves to the empty line after:
       // Do nothing if field is blank
        if (!s) return;
    Is there something missing?
    I really appreciate your help.
    alice

  • How to format a form with adf

    Hi,
    I want to format an adf form like this :
    http://dl.dropbox.com/u/33421977/adf_form.PNG
    To do this I have used af:panelDashboard and af:panelBox with af:panelFormLayout inside.
    Now I don't want to use panelBox anymore, but I don't know how to achieve this without panelDashboard/panelBox.
    What is th best aproach to do this? Can you send me some links which explain how to format a form with adf?
    Thanks.

    Is just a question of style. In the real application this form is included in another panelBox. So it looks too... I don't know how to say it... too heavy?
    In fact I don't want to see these panelBoxe's borders. Maybe I have just to change the style of these boxes? Do you know if it is possible?
    But more generally, what is the right way to format adf forms? Can I achieve this sort of formatting just using panelFormLayout?

  • With acrobat 7, how do I make links (within the pdf) open in a new window-tab?

    With acrobat 7, how do I make links (within the pdf) open in a new window-tab?

    No love? From anyone?

  • How can I sort photos within an event? When I follow the Help instructions, I can sort manually in Photo format, but when I return to Event format, the original order is restored.

    How can I sort photos within an event? When I follow the Help instructions, I can sort manually in Photo format, but when I return to Event format, the original order is restored.

    Events are organisation for those who can't really be bothered. They are automatic - based entirely on Date and Time the camera records the photos as taken.
    You can move photos between Events, you can Merge Events, you can Rename them and sort them in various ways except one: You cannot manually sort in an Event as Events are all automated.
    If you want to manually sort in an Event then you've outgrown Events as an organising tool. Now it's time to look at albums (Where you can manually sort) which are much more flexible than Events as an organising tool.

  • How to read 16-bit signed integer in binary format with 2 byte sync. preceding??

    A flowmeter provides data as 16-bit signed integer in binary format with 2 byte sync. preceding
    I got i small problem by understanding the synchronasation.
    I read the data provided by the flowmeter, and then write it to a binaryfile.dat. i need to convert the data to decimal format. is it better to convert the data before or after writing it to the binary file. Coz i need to read the data out again for calculations and save it again in a new file.
    I understand that the synchronization  help one to see where to begin reading the usable data. is it right?
    Need any suggestions
    Thank you !
    Zamzam
    HFZ
    Attachments:
    DataOut.JPG ‏37 KB

    HI Rolf.k.
    Thank you for the small program it was helpfull.
    You got right about that proberly there  will be conflict with some spurios data, I can already detect that when writing the data to a spreadsheet file.
    I writes the data in such a way, that in each line there will be a date, a timestamp, a tab and a timestamp at the end. That means two columns.
    When i set given samplerate up, that controls the rate of the data outflow from the device, (1,56 Hz - 200 Hz),   the data file that i write to , looks unorderet.
     i get more than one timestamp and severel datavalues in every line and so on down the spreadsheet file.
    Now the question is: Could it be that the function that writes the data to the file,  can't handle the speed of the dataflow in such a way that the time stamp cant follow with the data flowspeed. so i'm trying to set the timestamp to be  with fractions of the seconds by adding the unit (<digit>) in the timestamp icon but its not working. Meaby when i take the fractions off a second within the timestamp i can get every timestamp with its right data value. Am i in deeb water or what do You mean!??
    AAttached Pics part of program and a logfile over data written to file
    regards
    Zamzam
    HFZ
    Attachments:
    DataFlowWR.JPG ‏159 KB
    Datalogfile.JPG ‏386 KB

  • How to digitize a physical book (scanned pfd file) to a kindle format with Indesign? pages are 8x11.

    How to digitize a physical book (scanned pfd file) to a kindle format with Indesign? pages are 8x11.
    I have all scanned pages, but the kindle format offered on the Indesign options is bigger. What should I do? Do I start a book from scratch with the scanned pictures or do I leave the pages with the white space on them with the kindle option of Indesign.

    Hi barbaraegarza,
    For your situation, you could try using alternatives like PDF4Kindle, Calibre, or Papercrop.  But based on what I've read and my quick experiment, depending on the complexity of  your PDF, it may be more effort than it's worth to try to convert a PDF into a legible Kindle, ePub, or any other e-reader file.
    I did a quick test on Calibre with a 16-page PDF that contained multiple columns and images.  The results were illegible!  It ran the lines from each column together, making the text difficult to comprehend.  Calibre explains why PDFs are difficult to convert -- Ebook Conversion — calibre User Manual.  I have not tried the other two applications that I suggested above, but I would assume that the results would be very similar.
    I don't know what kind of results you got when you converted it in InDesign, but if your first test turned out fine and it was just the size of the file that you are concerned about, you could use Acrobat to reduce your PDF's file size and convert it to the Kindle format in InDesign again.
    Hope this helps.  Good luck!

  • How can i to convert a file to .m4a format with constant bitrate and constant overall bitrate?

    how can i to convert a file to .m4a format with constant bitrate and constant overall bitrate?

    "Surely you have the same check boxes as me? Surely you can make the same selections, AAC Encode, Custom bit rate, 256k or 320k or whatever you want... Sample rate 44.1KHz, Auto Channels and VBR not selected?"
    Yes.
    " Have you tested this? "
    Yes. I tested resulted files with "MediaInfo".
    "If so what are the results?"
    VBR.

  • How to most efficiently export photos on their original format with all metadata and adjustments?

    How do I most efficiently export photos on their original format with all metadata and adjustments applied? I am looking for a solution for exporting corrected photos between computers with Lightroom 5 installed. Preferably with no exporting or merging of catalogs.
    Thanks in advance for you support,
    JP Jacobsen

    And yet exporting a catalog is the perfect solution for communicating with another LR catalog...
    But if you really want to export photos , File>Export should work. I guess I don't really understand what your concerns are.

Maybe you are looking for

  • Need help on creating a pivot

    Hi Gurus, I am requirement to create a pivot table. I have managed to create part of it but need your help in completing it. The sample picture is available in the link below, https://www.dropbox.com/s/1wqht2gjfpux62v/Pivot_sample.JPG I have been abl

  • Table name which contains the email addresses maintained in address area of SCOT

    HI, I would like to know the table name which contains the email addresses maintained in address area of SCOT. I know how to see through SCOT, but I want to see as a list through SAP table. I am not able to see email list through SXNODE AND SXADDRTYP

  • Downloading and parsing XML during preload

    Apologies if this topic has already been covered but the search function on the forums doesn't appear to be working for me. My problem is this. I have a flex app that needs to download a couple of xml files during initialization that are approximatel

  • SAP ESS/MSS Configuration

    Hi Friends, Can anyone help me with some documents for reference on ESS/MSS configuration and integration of ABAP reports/Infotypes on ESS/MSS. Regards, Ameet

  • Is there a place for recommendations of third-party apps?

    There used to be a place on here to talk about anything at all, but I don't see that now, so I don't know where to ask this question. It would be nice to have a place to exchange recommendations of 3rd-party software that provides applications not ad