Condition, Expression 2 Question

Hi,
I'm relatively new to ApEx, so I apologize if my question is light weight.
One of the selections for condition type is "Value of Item in Expression 1 = Expression 2". I wanted to only display a button if 2 fields had the same value, and thought this condition type would work, but it didn't. After trying different combinations of syntax, etc. I came to the conclusion that it was expecting Expression 2 to be something different than I had in mind. I should have taken the condition type literally. It says 'Value of Item' in Expression 1, but just says '= Expression 2'. I take this to mean that you can put an item name in Expression 1 and ApEx will insert the value into Expression 1. But, Expression 2 should just be a literal.
Am I correct in my thinking?
If so, will something other than a literal work in Expression 2? If so, what will?
Thanks, Tony

Tony,
It says 'Value of Item' in Expression 1, but just says '= Expression 2'. I take this to mean that you can put an item name in Expression 1 and ApEx will insert the value into Expression 1. But, Expression 2 should just be a literal.Correct. You can put the name of one item in Expression 1 and &P2_ITEM. (with trailing period) in Expression 2 but I think it's more straightforward to use a PL/SQL Expression condition:
:P1_ITEM = :P2_ITEM
Scott

Similar Messages

  • Boolean Condition Expressions

    Unlike Condition Formats, Paragraphs, etc., Boolean Condition Expressions are apparently not stored in a linked list. In ExtendScript, you can get a list of the Expression names with this:
    var doc = app.ActiveDoc;
    var exprCat = doc.GetBuildExprCatalog();
    This gives you an array of strings containing the Expression names. I am not sure what the FrameScript or FDK equivalents are, but I assume there is a way to do this.
    Once you have the list, you can get each definition by doing this:
    for (var i = 0; i < exprCat.length; i += 1) {
        var expr = doc.GetBuildExpr (exprCat[i]);
        Console ("Name: " + exprCat[i] + " Definition: " + expr);
    I hope this will helpful to someone in the future. Please let me know if you have any questions or comments. Thank you very much.
    Rick

    Hello,
    You can better use the condition Exists (SQL Query returns at least one row)
    In expression 1 you would put : select GROUP from pl_department where userid = :APP_USER;
    The problem you are facing is that your code is going into exception. If you really want to keep your code you can adapt it like:
    DECLARE
    t1 varchar2(20);
    BEGIN
    select GROUP into t1 from pl_department where userid = :APP_USER;
    if ((t1 = '-') OR (t1 is null) OR (t1 = '') or (t1 = '%' || 'null%')) then
    return false;
    else
    return true;
    end if;
    EXCEPTION WHEN NO_DATA_FOUND THEN return false;
    END;
    But I would recommend my first suggestion.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/
    REWARDS: Please remember to mark helpful or correct posts on the forum

  • How to represent conditional expressions as data in an xml

    Hi All,
    Re phrasing my earlier question,
    1. How can I represent conditional expressions as data in an xml doc.
    2. How do I query these conditional expressions using xPath functions.
    Any pointers towards achieving this?
    Regards,
    Nishanth
    Edited by: user10947302 on Apr 16, 2009 4:18 PM
    Edited by: user10947302 on Apr 16, 2009 4:22 PM

    Nishanth,
    just for your understanding. I only understand your question a little bit because you left information bits all over the OTN forum sections. First off all, these forums are based on people that (most of the time) are not paid for what they doing here. Its all free will and takes effort. So be so curtious to me as specific as possible PLUS don't spam all the forum posts in the hope that someone will provide the answer.
    This forum is mend for XMLDB questions. The functionality that supports XML handling in the Oracle database.
    --> OR you have a question for this forum
    --> OR you have to ask your question on the "Rules Manager & Expression Filter" forum
    last time someone shattered the same question all over the place, the only thing it triggered with me was looking up the following Monty Python scetch about spam (and then I went to bed): http://www.youtube.com/watch?v=anwy2MPT5RE

  • Why does my conditional expression not work?

    I want to increment a global keeping track of how many critcal tests have been run. Usually I just increment it in the post expression of the test. However, if I have a test that loops it would increment on every loop, so I put a conditional expression in the post expression so it only counts once the loop is done:
    RunState.LoopIndex < 10 && RunState.LoopNumPassed < 3 ? FileGlobals.Critical_Test_Count : FileGlobals.Critical_Test_Count++
    However, the false condition in the expression never gets evaluated. I've put watches in to make sure the condition goes false after the last interation of the test and it does. But my global never increments. The true condition is not supposed to modify the variable.
    What am I miss
    ing?

    The reason for this is that the post expression is evaluated before the loop increment expression, so on your last loop the post expression is evaluated (loop count = 9) then the loop increment is evaluated and the loop is terminated. See page 6-26 of the Teststand user manual.
    Hope this helps,
    Nick

  • How to populate an EO Transient variable used in Conditional expression.

    Hi All
    I have a Unique Key Validator which has Conditional Execution in which I am checking for the value of transient variable and based on that value this validator is invoked.
    Problem is :- When this Conditional expression is processed, transient variable is not populated (code to populate it is written in getter method). As a result of which, I am not getting expected results.
    This is my conditional expression :- source.<Transient_variable> = <some value>
    I tried by replacing this expression as :- adf.object.getterMethod = <some value> , but that gave me the prototype not found error (method is present in EOImpl.java).
    How can I populate this transient variable before it is evaluated in conditional expression???
    Suggestions are welcomed!!!
    Thanks
    Nitin

    Just to explain
    Both adf.object.methodName and source.methodName are used to access EntityImpl methods. Difference is
    adf.object.methodName - used while defaulting the values of attributes
    source.methodName - used in validation expression and raising error messages/warning.
    Thanks
    Nitin

  • [svn:fx-trunk] 11530: Fix ASC-3790 ( conditional expression in for loop causes verifier error) r=jodyer

    Revision: 11530
    Author:   [email protected]
    Date:     2009-11-06 13:23:05 -0800 (Fri, 06 Nov 2009)
    Log Message:
    Fix ASC-3790 (conditional expression in for loop causes verifier error) r=jodyer
    Ticket Links:
        http://bugs.adobe.com/jira/browse/ASC-3790
    Modified Paths:
        flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/ConditionalExpressionNode.java

  • Purging FM files of conditional expressions

    As you've probably all seen, Framemaker 8 caches every (or at least the most recent few) conditional expression you create for a book. These expressions populate a dropdown list in the show/hide conditionals dialog box and just generally take up space and confuse people. I'd like to get rid of them- I know that they are stored at the very end of the chapter .FM files and book file, but I was hoping someone would know an easier way to get rid of them than opening each .FM file in notepad and scooping them out.
    Thanks!

    You might want to have a look at ElectroPubs CleanImport utility (http://www.electropubs.com/ez_cleanimport3.html ). This will purge all specified components prior to importing new ones from a template.
    Caveat: With conditional text, any conditonally tagged text that is hidden when a tag is deleted, will get wiped from the document. So you have to make certain that all tags are showing prior to import.

  • SUMIF using OR in the conditional expression

    I understand how to use the SUMIF function using checkboxes in one column for the conditional expression. I do not understand how to use it if I want to use an OR expression to OR various string values.
    I want have a column called "Categories" which have a variety of string values in them like "Club" "Soccer" "School" "Church" "Home". I want to SUMIF the category is "School" or "Home". I wrote out my formula like this:
    =SUMIF(Invitations::Category,OR("School","Home"), Invitations::Total in Party)
    but it doesn't work. Suggestions? Thank!

    Hello
    The OR is the correct operator but, as far as I know, this kind of condition is not allowed.
    Only a single one like "=Home" or like "=church" is allowed.
    I don't know which are the other categories.
    Assuming that they are "smaller than the string "church" you may use:
    =SUMIF(Category,">=church",Total in Party)
    If they are greater than "Home" you may use:
    =SUMIF(Category,"<Home",Total in Party)
    If you want to sum the values whose category matches one of three values, an alternate soluce may be to use an extraneus column (named Aux) whose formula would be
    =OR(Category="church",Category="Home",Category="YK")
    the final formula would be:
    =SUMIF(Aux,TRUE,Total in Party)
    Yvan KOENIG (from FRANCE mercredi 16 janvier 2008 14:08:41)

  • Data Change Condition Expression

    I need to create a product specification that includes dependencies between order components based on a data change notification wait condition
    How do I define the XQuery expression in the "Data Change Condition Expression" field?
    Specifically, I have 4 order components in the product specification that are independent of each other but each order component can only start when a specific data element has a certain value. The data element is at the order level and is not available as an order line item property.
    I would appreciate if someone from Oracle can provide a more detailed explanation of the fields in the "Product Specification Editor Dependencies Subtab" ->"Wait Condition subtab"
    Relative Path
    Data Change Condition Expression
    Thanks,
    ~nagu.
    Edited by: nagu on Dec 2, 2011 5:50 PM

    Provide two pieces of information:
    1. Order Item Property
    2. Boolean XQuery expression returning fn:true() to fire the dependency.
    For example:
    Assume you need to ensure all Provisioining items (From) must have reached the "PRODUCT STARTED" milestone , before the Billing Component Items (To) can start.
    Note From Component is also known as "blocking" while the To Component is known as "Waiter"
    1. Data Change Notification property: milestone
    2. Data Change Condition Expression Xquery:
    declare variable $blockingIndexes as xs:integer* external; (: list of From component items - index :)
    let $expectedMilestoneCode := "PROVISION STARTED"
    (: extract milestones values from all provisioning function items matching the expected milestone value , only for the given From component :)
    let $milestoneValues := /GetOrder.Response/_root/ControlData/Functions/ProvisioningFunction/orderItem/orderItemRef[fn:index-of($blockingIndexes, xs:integer(@referencedIndex)) != 0]/milestone[text() eq $expectedMilestoneCode]
    (: Return true only if ALL the milestones in the From component (ProvisioningFunction/orderItem/orderItemRef) are PROVISION STARTED :)
    return fn:count($milestoneValues) eq fn:count($blockingIndexes)
    Carlos

  • Conditional Expressions and the note about state-field's serialized form

    There's a note about state-field's serialized form in 4.6 Conditional expression chapter. Could anyone help me understanding it? It's on the page 88.
    State-fields that are mapped in serialized form or as lobs may not be portably used in conditional expressions[26].
    What's the serialized form? I think I understand what lobs might mean, but some additional explanation or a code snippet would be greatly appreciated.
    Jacek
    Jacek Laskowski
    http://www.JacekLaskowski.pl

    But that's my point. In the original expression the ++k and --k are evaluated first so the whole thing goes down as you described.  I agree completely.  But in the second case the term k is a urnary operator which would have higher precedence than the + or --- operators and therefore would be evaluated first while k is still equal to 1. Then again maybe I'm confused !
    Maybe I'll just compile the program and see what I get...

  • Mifwash loses names of boolean conditional expression

    (FM10 on Win7x64)
    Before a mifwash, boolean expressions for conditional tags are named as: Name1, Name2, Name3.
    After the mifwash, those expressions are named Default Expression, Default Expression1 and Default Expression2.
    A quick check of the mif file shows Name1, Name2, Name3, not Default Expression, Default Expression1 or , Default Expression2.
    What am I missing?

    More detail:  the mif contains the correct names of the conditional expressions: Name1, Name2 and Name3.
    And the mif does not contain Default Expression, Default Expression1 or Default Expression2.
    Doh!
    Edit:  FM11 behaves as expected. The names of the boolean expressions in the MIF appear in the GUI and "Default Expression" does not appear.
    Now I gotta considering upgrading to FM11.

  • A/P Express Newbie question

    Hi. Considering getting an a/p express to stream music down to my family room. Question: it seems the speaker connections are pretty limited--
    what sort of speakers do people use to stream wirelessly in a house. Is it a 1-speaker central speaker or two bookshelves or towers?
    How do you get the cables to fit into the back of the AP Express if they're not standard jack style? Should I upgrade my router to AP Extreme?
    Any other tips or a source for good information on AP Express w/be appreciated.
    Thanks.

    The AirPort Express uses a stereo mini jack. You'll need an adapter and stereo cable to hook to your stereo. The Express will also provide a digital optical output. Again, you'll need an optical cable with the correct connectors to connect to your stereo.
    Check the Apple online store for accessories, cables, etc. Radio Shack will also have what you need.

  • Condition (expression) builder

    Hi all,
    Does anyone have a clue where I can find a java Swing control that will enable the construction of something similar to a java condition with a grafical user interface?
    I want to build a designer that will enable the user to generate a conidition/expression using a convinient user interface.

    You cannot use If statements on expressions. You can convert it to a "case":
    CASE
    WHEN INGRP1.TOTAL_ORDERS THEN 0
    ELSE (INGRP1.EST_SUBSCRIPITION / INGRP1.TOTAL_ORDERS ) * 100
    END
    Regards,
    Bruno

  • MeetingPlace Express Integration questions

    Hi,
    On MeetingPlace express, we can configure different ways for call-control integration.
    In CallManager integration without gatekeeper mode, what's useful of the field of E.164 address under meetingplace H323 configuration mnue? By default it is "000". In this case, we can dial the more than one numbers of those configured on "Usage Configuration" or "Dial Configuration" if we correctly configured the route-pattern on CallManager;
    But if integrated to Gatekeeper, we can only define one address which is the E.164 address under "H.323 configuration", and MeetingPlace express is registered to Gatekeeper as an endpoint; In this case, looks like those numbers defined on "Dial Configuration" or "Usage Configuration" does not help us. In this case, if the requirement is integrating gatekeeper, and have more than one DIDs can be used for meetingPlace express, how can we do?
    Thanks,
    JJ

    CallManager SRND mentioned that we can add commands manually on gatekeeper for other MeetingPlace express access numbers, which answered my questions.
    JJ

  • T420s Nvidia Graphics Card & Express Card Questions

    Hello, and thank you for checking out my post.  My apologies for writing a book, but I'm hoping to give as much detail as needed the first go round.
    I just received my custom-built T420s (4170-CTO) and have a couple technical questions/concerns about it.  The details of my configuration are located at the bottom of this post.
    First off, one of the deciding factors of my purchase was the discrete graphics card.  On the T420s I chose NVIDIA NVS 4200M Optimus Graphics 1GB, Intel Core i7-2620M Processor.  I was thrilled to have more than 256 MB of dedicated graphics memory for my games.  Upon receiving my laptop, though, I ran the Windows Experience Index and saw that the lowest score was the graphics card, which is identified as Intel HD Graphics Family and has 64 MB of dedicated graphics memory.  After my heart started beating again I checked Device Manager and found under Display both Intel HD Graphics Family and NVIDIA NVS 4200M listed as working with up-to-date drivers.  When I configured the laptop online there was no mention of hybrid graphics, so I'm not sure why I have an Intel Graphics card on the machine.  My current laptop that I was looking to replace is a T61p with a NVIDIA Quadro FX 570M graphics card, and only that NVIDIA card is shown under Device Manager and in the Windows Experience / Performance Information.  Thinking that perhaps disabling the Intel card would cause the NVIDIA card to take over, I disabled that through Device Manager.  My screen went black and after feeling quite stupid I rebooted my computer.  The default Windows Display driver kicked in, allowing me to see well enough to get back to Device Manager and enable the Intel Graphics.  I counted myself lucky that I wasn't stuck with a working computer with a blank screen, but I'm still confused about why the NVIDIA card isn't the only display adapter on the machine, and why it isn't the default/main adapter.  Most importantly, will it be usable to run my games?
    My second question is regarding the PCI ExpressCard slot.  My aim for this machine was to have a HDD to store my data (I selected the 320GB 7200 RPM HDD) and a SSD to boot and run my programs from.  Another reason for choosing this machine was the comment on Lenovo's site stating that a user booted his T420s from a solid state drive in the PCI ExpressCard slot, which was exactly was I was looking for.  I need the CD/DVD drive, so I can't put the second hard drive in a caddy.  During configuration I chose the option for an Express Card Slot & 4 in 1 Card Reader & Smart Card Reader.  From what I can tell, the Express Card slot is not connected to the Card Readers and I will not lose use of those ports.  When I opened the computer up to install more RAM, I saw what is labeled in Lenovo's hardware manual as the Express Card slot, apparently empty - which is great!  Now I need to figure out what kind of SSD to look for, and on that I'm kinda lost.
    I'm guessing that my ExpressCard slot is 34mm and PCI form factor rather than USB... but I don't want to spend hundreds of dollars on a not-incredibly-educated guess.  I'm also not sure where mSATA comes into play for me, if at all.  Looking at SSDs on sites such as newegg.com, I'm unsure of what form factor to choose - ExpressCard, PCI-E, mSATA, and/or 1.8"?
    The tech specs of my configured T420s (copy/pasted from the order status) are as follows.  I hope this means more to you than it does to me.
    Part #:
    0A71709   VBB INTCRI7-2620MPR(2.7GHZ
    45M3092   VBB GENWIN7HOMEPREM64    (which ultimately doesn't matter as I'll be booting from Windows 7 Enterprise on my SSD)
    0A68718   SBB GW7 HP64 US ENGLISH
    0A68976   SBB 14HD+LDBCKLTANTGLDSPMBBBRD
    0A68972   SBB NVD12PNS2OPG1GBICI7-2620MP
    45M4569   VBB 2GBPC3-10600DDR3 1333SODMM    (which has been removed and replaced by two 4GB sticks)
    0A68978   SBB FINGERPRINT READER
    0A68993   SBB 720P HD CAM+INTGR MCRPH
    0A68990   SBB 320GB HRD DSK DRVE,7200RPM    (will be used for storage and as a backup boot device)
    0A68985   SBB DVD RCRDBL8XMXDLLRULTRBSLM
    0A68996   SBB EXCRSLOT+4IN1CRDRD+STCRDRD
    0A68261   SBB BLUETOOTH 3.0
    45M4805   SBB IN.CENTADV.-N+WIMAX 6250
    44C7950   SBB INT WRLSSWDAREANTWRK UPGR
    In Device Manager I see the following related (I think) devices located under System Device:
    Intel 6 Series / C200 Series Chipset Family PCI Express Root Ports 2 (1C12), 4 (1C16), 5 (1C18), and 1 (1C10)
    Intel 6 Series / C200 Series Chipset Family SMBus Controller 1C22
    Intel QM67 Express Chipset Family LPC Interface Controller - 1C4F
    PCI bus
    2nd generation Intel Core processor family DRAM Controller - 0104
    2nd generation Intel Core processor family PCI Express Conroller - 0101
    Whew.  Thanks for making it through my book-long post.  If you can offer advice on either of my questions/concerns I'd really appreciate it.
    Thanks!
    Lauren

    The T420s with Nvidia GPU has two graphics card that can switch on the fly, if you only want the discrete gpu, just go into your bios menu under graphics there is an option to select discrete.
    With the Nvidia Optimus (which is what you have), it can switch between Nvidia and Intel GPU depending on your application needs. This will allow you to conserve battery or power.
    Expresscard slot 34 mm slot is occupied by the card reader that you ordered.
    What you are talking about within the ram slot cover, is the mPCIe slot, which can be occupied by a mSATA drive.
    http://forum.lenovo.com/t5/T400-T500-and-newer-T-s​eries/T420s-T400s-T410s-removal-of-4-in-1-SD-card-​...
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

Maybe you are looking for

  • Ipod touch 4g stuck in recovery mode after update from 4.3.3. to 6.1.3

    ALL the tips on the internet/youtube require installing software that is now embedded on my computer - such a scam

  • Itunes 11 will not authorize

    Hi, Can anybody help. I have downloaded ITunes 11 to this PC twice now, removed once by add/remove programs. When I go to store - authorize this PC (xP sp3) I get the following error messages. The second is when I click on continue. I am obviously co

  • Issue with importing Opportunities

    Ok, I need help!! I am importing Opportunities from a csv file. Two files with exactly the same format are imported. One imports ok, the other one says it has an unexpected error and fails all records. What am I missing??? Thanks to any help!

  • Unable to delete boot environment

    I installed SXDE207 into a vmware VM on my laptop. I then upgraded it to 907 using live upgrade: bash-3.00# lustatus Boot Environment           Is       Active Active    Can    Copy      Name                       Complete Now    On Reboot Delete Sta

  • I can't download a new ios version for iphone 3, I can't download a new ios version for iphone 3

    My brother gave me his old iphone 3 its not activated yet but I do have itunes and internet on it. I updated it already then went to the app store to download games and it shows I need ios version 4.3 to install them. I have tried everything i know t