GTL Problem Checking existance of variables

Hi,
I'm using PD 15.3 on a win7 System.
In a pdm targeted to Oracle DBMS. Enhancing the generation of triggers I'm trying to request a variable not sure if it exists.
I use:
.set_value(v1,,new)
%v1?% shows: "true"
%v2?% Shows "true" while "false" is expected since v2 is not defined.
Trigger source will be generated from templates which are defined within an XEM model Extension. Under metaclass trigger I defined a "Generated File" which containes the same code snippet as above. The generated file shows up when previewing the trigger and there coding works as expected:
%v1?% shows "true"
%v2?% shows "false"
GTL seems to Interpret question marks different depending on use within a DBMS-Extension or use within XEM-Extension.
Can anybody help?

Hi,
The is around evaluation of trigger text. This does not use the same mechanisme as the GTL.
This should be considered as a bug.
A workaround is to define under trigger profile a new template "isDefined" with the following (which use the bug behavior, so once the bug is fixed, the following should not work anymore)
<<
.set_value(percent, "%", new)
.set_value(varname, "%percent%%@1%%percent%", new)
.if(%varname%==%*@1%)
false
.else
true
.endif
>>
What is used here is that the variable evaluation returns the variable name when it is not defined.
To check this, I rebuild the variable name with percent around it and compare with the variable evaluation (%*@1%)
In your trigger template, you replace the "%v1?% with %isDefined(v1)% and it should returns the correct value.
Marc

Similar Messages

  • Problem in Displaying text Variable

    Hi All,
    I have problem in Displaying text Variable in the column header.
    My requirement is as follows.
    Column Level:
    0Calmonth/Year
    Key figures
    Keyfigure1 - Current Month  - Text Variable1
    Keyfigure2 - Previous Month - Text Variable2
    Keyfigure3 - Previous Month - Same as Text Variable2 - Display same month
    So based on each 0Calmonth/year these three keygirues should display in Header section like.
    Selection screen
    0Calmonth/Year - 03.2005 - 06.2005
    Result should be for each month.
    0Calmonth/Year
    03.2005                                04.2005                              05.2005
    03.2005 | 02.2005 | 02.20005  04.2005 | 03.2005 | 03.2005 05.2005 | 04.2005 | 04.2005.
    I have created two text variable with Customer exit.But not able to show exact months in the header section.
    For first three columns months are coming exactly, but from fourth columns it should display next month, but it is not coming.
    I have tried to code, but not successfull.
    Please help me how to go about this.
    Will assign full points.
    Regards,
    Vijay

    hi
    Check here........
    Re: Customer Exist for "From Current Date To Month End"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a
    Cal month
    it might helpful for you
    assign points if helpful

  • Macbook pro 13" late 2011 stuck up at apple logo and spinning wheel, changed HDD problem still exists

    i have a macbook pro 13' late 2011 unit and its not starting up, found out that the HDD was defective, but when i changed the HDD the problem still exists, what may be the problem?
    thanks

    Have you tried booting into the Recovery HD and running Disk Utility and checking to see if the HD needs repairs?
    Restart holding Command + r and at the recovery screen select Disk Utility. Then select Macintosh HD and click  on 'repair disk'. If anything gets altered click on repair disk again until you get a clean pass. Restart as normal from the Apple menu. More info here about the Recovery HD:
    http://support.apple.com/kb/HT4718

  • Payment run error "No check exists which meets the selection criteria"

    I have done a payment run successfully, maintained a variant for the check print program but when I want to display the cheques i get this error: " No check exists which meets the selection criteria"  
    I have mantained the check lot for the house bank and the ID as well.
    What could be the problem? Please help.
    Regards
    Debra

    Hi
    I have checked FBZP t. code and the check lots , all seem to be in order. I still have not found out where the problem is.
    Thanks Shammi
    Regards
    Debra

  • Check your CLASSPATH variable.....

    I 'm trying to run the demo (Linux envinroment) and I get this error though Classpath is set...
    see the display below >>>
    lando@lando-desktop:~/DERBYTUTOR$ echo $CLASSPATH
    :/home/lando/jdk1.6.0_11/db/lib/*.jar
    lando@lando-desktop:~/DERBYTUTOR$ java WwdEmbedded
    ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
    >>> Please check your CLASSPATH variable <<<
    . . . exception thrown:
    ---SQLException Caught---
    SQLState: 08001
    Severity: 0
    Message: No suitable driver found for jdbc:derby:jdbcDemoDB;create=true
    java.sql.SQLException: No suitable driver found for jdbc:derby:jdbcDemoDB;create=true
    at java.sql.DriverManager.getConnection(DriverManager.java:602)
    at java.sql.DriverManager.getConnection(DriverManager.java:207)
    at WwdEmbedded.main(WwdEmbedded.java:72)
    Getting Started With Derby JDBC program ending.
    Where is the problem ?
    Thanks a lot.
    Edited by: lndo on Feb 5, 2009 11:33 AM

    Classpath setting in .bashrc is below ...and is correct
    export CLASSPATH=$DERBY_HOME/lib/*.jar:.;
    and I can disply it >>>
    lando@lando-desktop:~$ echo $CLASSPATH
    :/home/lando/jdk1.6.0_11/db/lib/*.jar:.
    and its containt is here >>>
    lando@lando-desktop:~/jdk1.6.0_11/db/lib$ ls
    derbyclient.jar        derbyLocale_it.jar     derbyLocale_zh_TW.jar
    derby.jar              derbyLocale_ja_JP.jar  derbynet.jar
    derbyLocale_cs.jar     derbyLocale_ko_KR.jar  derbyrun.jar
    derbyLocale_de_DE.jar  derbyLocale_pl.jar     derbytools.jar
    derbyLocale_es.jar     derbyLocale_pt_BR.jar  derby.war
    derbyLocale_fr.jar     derbyLocale_ru.jar
    derbyLocale_hu.jar     derbyLocale_zh_CN.jarbut if before launching the program I type in command line >
    CLASSPATH=$DERBY_HOME/lib/derby.jar:.;
    It works fine ....as if /db/lib/*.jar:. could not get derby.jar !

  • I have a problem sending mail via smtp. I use a satellite system and the average return time for a ping is 675ms. Is this a problem with mail? If so can I change Mail to accept it. The problem also exists with Lion

    I have a problem sending mail via smtp. I use a satellite system and the average return time for a ping is 675ms. Is this a problem with mail? If so can I change Mail to accept it. The problem also exists with Lion and on both my MacPro and my wife's Imac. I also see my mailboxes randomly disconnecting and reconnecting. Any other ideas of a possible cause?

    I solved it myself, after the "note" which came back from FF/Mozilla just as I finished my message, commenting on what it was that my system had , I wnnt back to check my plug-ins etc. I downloaded the latest Java, BOTH 32bit AND 64 bit versions and latest Firefox.
    Now all is working.
    Thanks,
    B.

  • Every once in a while when I open my mail or a page I get nothing but strange lines of symbols.  Many of the symbols are black triangles with question marks in the center.  I completely reset it like new, but problem still exists

    Every once in a while when I open my mail or open a page I get lines of strange symbols like black triangles with question marks in the center.  I have reset the ipad2 to new condition but the problem still exists.

    A reset does not make tthe iPad "like new."
    First, let's ensure that we agree on just what is a Reset...
    Hold down the on/off switch and the Home button simultaneously until you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore, go into Recovery Mode per the instructions here.

  • Oracle SOA suite 11.1.1.7 on windows 8 OS, But, during installation i got a problem "Check OS Certification".

    I want to install Oracle SOA suite 11.1.1.7 on windows 8 OS, My personal HP Pavilion g6 laptop. But, during installation i got a problem "Check OS Certification". What is this certification. Please Help Me.
    Regards,
    Satish.

    Pl identify exact version of Windows 8. Have you verified that your OS is supported/certified by consulting the spreadsheet at Oracle Fusion Middleware Supported System Configurations

  • I used migration to send photos form my Mac Book to my I Mac now i get an error message "iPhoto can not be opened because of a problem"  Check with the developer to make sure iPhoto works with this version of Max OSX.  You may need to install any availabl

    I used migration to send photos form my Mac Book to my I Mac now i get an error message "iPhoto can not be opened because of a problem"  Check with the developer to make sure iPhoto works with this version of Max OSX.  You may need to install any available updates or reinstall IPhoto.
    I tried installing Iphoto it said it was downloaded successfully. I still get the error messafe, and can not open any photos of program,  any suggestions?

    What version of iPhoto do you have on the Macbook and on the iMac? What systems are you running on the Macbook and on the iMac?
    Does the message only refer to "a problem" or does it specify what it is?
    Happy Holidays

  • My IPOD Classic Video 5. Gen. showed videos, but now it does no longer show them, instead i see a black picture on my IPOD and it doesn`t work. I have to restart it every time, i try it. i restore the software with itunes, but the problem still exists.

    My IPOD Classic Video 5. Gen. showed videos, but now it does no longer show them, instead i see a black picture on my IPOD and it doesn`t work. I have to restart it every time, i try it. i restore the software with itunes, but the problem still exists.
    The Videos are showed up front 4 months, but now they are no longer to be seen. When you star a video first the hard drive starts, but then it stops and hangs up. I have to restart it, starting with the apple logo....

    Here is what worked for me:
      My usb hub, being usb2, was too fast. I moved the wire to a usb port directory on my pc. That is a usb1 port which is slow enough to run your snyc.

  • When trying to open Pages 4.0.1 I get a message stating "Pages cannot be opened because of a problem, check with the developer to make sure Pages works with this version of Mac OS X. You may need to reinstall the application." Using OS X 10.6.8

    When trying to open Pages 4.0.1 I get a message stating "Pages cannot be opened because of a problem, check with the developer to make sure Pages works with this version of Mac OS X. You may need to reinstall the application. Be sure to install any available updates for the application and Mac OS X."
    I've run the software update several times. Pages is located in my iWork '09 folder in Applications. Using OS X 10.6.8

    Delete and reinstall it.
    (104030)

  • Error when opening itunes : iTunes has stopped working ''A problem caused the program to stop working correctly''. When I repaired damaged files the problem still exists and also after uninstalling and redownloading and installing itunes. I have windows 8

    Error when opening iTunes : iTunes has stopped working '' A problem caused the program to stop working correctly''.
    When I repaired damaged files the problem still exists and also after uninstalling, redownloading and reinstalling iTunes.
    My pc is working with windos 8.
    Is there a solution?

    Hey there Rodney274,
    It sounds like you are getting an error from iTunes when you launch it. I would try the troubleshooting in this article named:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    Start with troubleshooting for 3rd party plug ins section, then the rest of the article if needed:
    Start iTunes in Safe Mode
    Open iTunes in Safe Mode to isolate any interference from plug-ins or scripts not manufactured by Apple.
    Hold down Shift–Control while opening iTunes. You should see a dialog that says "iTunes is running in safe mode" before iTunes finishes starting up.
    Click Continue.
    See if the issue you're experiencing persists in Safe Mode.
    If you have the same issue while iTunes is in Safe Mode, proceed to the "Create a new user account" section. If you don't experience the same issue, follow these steps to remove third-party plug-ins.
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • My firefox crashed when upload file on our web based application. This happen on two PC, even during firefox safe mode the problem still exist. But the problem

    Dear All,
    My firefox (version 23 on win 7) crashed when upload file on our internal web based application. This happen on two PC, even in firefox safe mode the problem still exist. So, my first conclusion the problem nothing to do with extension. here the crash ID https://crash-stats.mozilla.com/report/index/81220865-36c0-4e10-a484-6d27e2131023 and https://crash-stats.mozilla.com/report/index/86d2b779-9730-4d2c-b276-a86d42131023. I wonder if this happen because jquery modul in our web based application. But when I tried on my laptop, the problem dissapear. I tried to replicate same situation on different server, I mean I put the exact same application source to other server, never meet the same problem. Thus, I suspect may be it related to antivirus that installed in our network which is kaspersky. I am googling, never meet the clue.
    If you meet the same problem, please help me.
    I am so sorry for my poor english.
    Him Him

    The crashes are a problem with the winhadnt.dll file (OCular Agent from TEC Solutions Limited) as you can see in the crash reports.
    *http://www.freefixer.com/library/file/winhadnt.dll-52397/

  • Coercion problem when using Shared Variable

    I have a curious coercion problem when using Shared Variables.  I want to share the state of a State Machine, which is an enum saved as a control (typedef) called TYPE State (see attached).  I create a shared variable called State and define it as a Custom Control, using the just-mentioned typedef.  So far, so good.  I've attached three simple VIs -- the first one, Init State, simply wires a constant to the input of the Shared Variable to initialize it -- the wired constant is, of course, defined by the typedef.  However, the Get State and Set State, meant to wire an indicator (for reading the state) or control (for setting it), develop coercion dots when wired into the Shared Variable.  Why?  How do I get rid of the dot?  [I suppose I could abandon my typedef and custom control, but the beauty of typedefs and custom controls is that it "enforces" rules, lets you use enums for clarity, keeps the code "honest", etc. -- I'd hate to give that up just to get rid of a dot!].
    On a related note, the code seems to work.  This is much too simplistic to do anything, but if you open Set State and Get State, set the state to anything, run it (it immediately stops, of course), then run Get State, you'll see the chosen state appear in the indicator.  So it does appear to work.  The "error" (coercion dot) may, I suppose, be a "bug" in Labview because it can't figure out the mapping of the (very simple!) Custom Control, but if so, I hope it gets fixed quickly!
    Bob Schor
    Attachments:
    Coercion Problem1.zip ‏38 KB

    Hello Bob,
    I am also seeing this behavior, I will escalate this question to our LabVIEW developers and post again here no later than next Tuesday, November 27th as National Instruments will be closed for the remainder of this week.
    If this issue does turn into a product suggestion, I would suspect the workaround would to live with the coersion dot for the time being.
    Enjoy the holiday
    Regards,
    Erik J.
    Applications Engineer
    National Instruments

  • Function module for checking existance of rfc destination?

    hi all,
       is their any function module for checking existance of rfc destination?
    regards
    deepak

    Hi,
    check teh table 'RFCDES'.
    reward if helpful.
    Regards,
    nagaraj

Maybe you are looking for

  • Positng to Internal order

    Hi, Is there any way to rectify the posting to a Internal order. There was a document posted to an internal order with incorrect amount. I wanted to rectify the amount by posting another internal order document? Kindly advise how to do this? Thanks B

  • Dealing with small changes to MS Word source file when creating a form

    I have an MS Word 2007 file that I converted to PDF in Acrobat Professional 9.0 and converted the PDF to a fillable form.  I spent several hours yesterday working with the field types and adding submit buttons/radio buttons, etc.  This morning, my su

  • Error comes up when I use the command:Setup.exe /PrepareAD /IAcceptExchangeServerLicenseTerms

    Hello, When I am using the command  c:\Exchange2013\>Setup.exe /PrepareAD /IAcceptExchangeServerLicenseTerms on my domain controller I am receiving the error below: Welcome to Microsoft Exchange Server 2013 Service Pack 1 Unattended Setup Copying Fil

  • How can I plot  a graph in sections???

    Hi This is what I am trying to do: I have a graph class that uses a double array to plot.. surprisingly a graph. The problem is that the file that I am plotting from is too large to display all of its data at once on the screen. What I am trying to d

  • My iPhone 4 text messages to none iPhone phones aren't working correctly

    When I send a text to my friends with Droid phones the text character count doesn't seem to matter. I can send a text which in my iPhone is 320 characters which is in most phones had been two text... 160 characters had seemed to be commonly one text