Conditional statments in tables

Hi ,
Can anyone help me with a problem relating to dynamic tables and conditional statements.
I have a dynamic table where the user can add and delete rows as required – which appends the array value in square brackets to the duplicated row.
Within a row I want to display a cash value in say  the 3rd column dependent on the value previously selected from a drop down in 2nd column.
I’m struggling to understand the simplest way of referring to the rows previous column in a conditional statement.
Any help would be appreciated.
Dog.

Hi Dog,
There are a couple of ways to do it, probably easiest is to take advantage of the fact that the 2 fields are in the same row and therefore share a parent. You could put this script in the ready:layout event of the target field.
     // Refer to data in previous column
     if (this.parent.DropDownField != null) {
          this.rawValue = this.parent.DropDownField.rawValue;
Where:
this = the target field (i.e. the field where you want the value displayed)
this.parent = the current row of the table
DropDownField = is the field in the previous column, replace this with the name of your field

Similar Messages

  • More than one join condition for 2 tables in obiee

    Hello,
    I am using obiee 11g.
    There are 2 tables tableA and tableB where the join condition is like (tableA.col1=tableB.col1) or (tableA.col1 is null and tableB.col1 is null)
    where should i do these type of joins.
    I tried putting in physcial layer->f(x) but giving error like here only columns an d opertaors are allowed.
    Thanks

    ok here it goes.
    I have a tableA with columns col1(pk),col2 and other columns
    I have tableB with columns col1(pk),col2..Only these 2 columns.
    Now distinct tableA.col2 values are put in tableB.col2. For those distinct values i have put the tableB.col1 values.
    Now tableA.col2 as well as tableB.col2 can be null beacuse there may be null values in tableA.col2.
    Now in tableB i have added one more row which has col1 as value and col2 as null.
    Now when in physical layer when i do tableA.col2=tableB.col2 i dont get the null values.
    What i want is whenever the tableA.col2 and tableB.col2 is null then take tableB.col1 for those vales.
    So when i query i do
    select * from tableA,tableB where
    ((tableA.col2=tableB.col2) or (tableA.col2 is null and tableB.col2 is null))
    What i want is when i do a join i should be able to give this OR condition in rpd thats it.
    because when i do in where clause of content tab it goes like a AND condition and not OR.
    Thanks
    Edited by: user123 on Jul 5, 2011 1:57 PM

  • Function Module for creating condition record (XKOMV table record)

    Hi,
    I have a requirement as like below,
    In the repair order i need to sum the GRWR condition type's  conditional values for all the line items (Except deliverable line item) and then i need to create an condition type GRWR under the deliverable line item with the above calculated conditional values,
    the table XKOMV will be having details about all the line item's condition types, in this table i need to add one more new record with the condition type of GRWR and the above calculated conditional values under the deliverable line item.
    for the above logic i am using the user exit
    USEREXIT_SAVE_DOCUMENT_PREPARE
    All the above things need to be done when the user click the save button in the transaction (VA01/VA02).
    Problem here is table XKOMV contains somany fields so manually we can't create xkomv record, is there any Function module to create condition type record?
    Regards,
    Manikumar
    Edited by: Manikumar Shanmugam on Mar 8, 2008 3:53 PM

    Hi,
       You can use Function module PRICING_CHECK to check condition record. Do a where-used list on it to see how to call it.
    Regards
    Kiran Sure

  • Conversion with Conditional Text in Table

    I'm taking the first steps in converting Unstructured Frame to Structure. One document is pretty clean except for one issue: my structure breaks around conditional text in tables. (The tables have a f3ew issues oftheir own, but the conditional text seems to compound the problem) I'm not sure how this should be dealt with. The structure tags are shown in the view below.
    And here is the Structure View:
    Is this something that can be set up with a qualifier, and if so, How? Also, in the conversion map table, Is there any order dependency, as well, concerning where the Conditional Text element appears?

    Jane,
    As far as I am concerned I do not see anything unexpected. You get dotted lines in the Structure View apparently because the element <B1_Body1> seems not to be allowed in the Element <CELL>. It looks like you worked with the defaults of the Conversion Table. Have you created your own EDD and imported the Element Definitions? Is <B1_Body1> a legal element inside <CELL>?
    From my experience the Conditional Text feature works very much in parallel to the element structure. It comes from the format-based world and the structure has no means to handle text conditions. If you want to work with text conditions in the future, you would use »attribute-based condition management« as made possible through the plug-in AXCM or FrameMaker’s built-in feature »Filter by attribute«. There is no built-in method to change text conditions into certain attribute values – but it is possible to automate this move via the FDK or FrameScript or ExtendScript (from FM10).
    - Michael

  • Condition type value table ????

    I want the value of the Condition type of taxes in the Purchase Order
    When we open the PO , Click on Invoice and then on Taxes, the screen shows Condition types and there values.
    From which table i can get these values on the basis of the Purchase Order.

    Hi,
    KONV  tablefor conditions.
    EKBZ  Table .
    KONV-KSCHL for condition type.
    KONV-KWERT Condition value
    KONV-KBETR Rate Percentage.
    Reward if useful.
    Regards,
    Narasimha
    Edited by: narasimha marella on May 15, 2008 9:00 AM
    Edited by: narasimha marella on May 15, 2008 9:14 AM

  • PROBLEM to give condition in ADF table column and on pressing enter

    Hi,
    1st problem:
    ========
    I have 1 ADF input text ,
    <af:inputText id="testinp"
    contentStyle="width:200px"
    value="#{adfobj.input1}"
    />
    say user is trying to enter any value , immediately if user presses "ENTER KEY" inside input text only i should invoke managed bean method
    say,
    Test.java
    ======
    public void getData(){
    2) im trying to display an ADF table,
    ADFStandardsLeftMenu=in faces config this name points to "ADFStandardsLeftMenu.java" bean
    mostCommonAgencySelectedList=of type arraylist which is present inside this bean
    this list obj holds 1 "StandardURLData.java" bean object
    accreditedagencyStdSelectedList.add(new StandardURLData("test col"));
    public class StandardURLData{
    private String stdName;
    public StandardURLData(String stdName){
    this.stdName=stdName;
    <af:table value="#{ADFStandardsLeftMenu.mostCommonAgencySelectedList}"
    id="t1" width="100%" var="stdURL"
    emptyText="<html><b><font color='red'><center>No Records Found</center></font></center></b></html>"
    inlineStyle="height:500px;">
    <af:column sortable="false" headerText="STANDARD NAME" align="start" id="c1" width="220px"
    inlineStyle="font-weight:bold;">
    <af:goLink text="#{stdURL.stdName}"
    id="sub_pt_gl1"
    destination="#{stdURL.viewerLink}"/>
    </af:column>
    <af:column sortable="false" headerText="FILE NAME" align="start" id="c3" width="220px">
    <af:goLink text="#{stdURL.fileName}"
    id="sub_pt_gl3"
    destination="#{stdURL.viewerLink}"/>
    <af:outputText value="#{stdURL.fileName}"/>
    </af:column>
    </af:table>
    im able to print all the values......
    but i want to include 1 condition in go link,
    like ,
    if "fileName" value (2nd column data) is null or "" (string in StandardURLData bean)
    i should not give hyperlink in 1st column "stdName" column
    i.e.
    (text: stdname should not come in hyperlink)
    <af:goLink text="#{stdURL.stdName}"
    id="sub_pt_gl1"
    destination="#{stdURL.viewerLink}"/>
    could anyone tell me how to give these conditions in adf table.
    in managed bean even if we check it will be prob while generating cols in table
    thanks in adv
    regards,
    sandeep

    Hi,
    If u know the employees who can change the values in other boxes, then follow the below procedure,
    In PBO,
    if employees can change,  (EMP = '....')
    loop at screen.
    if screen-name = 'Name for the input field'.
    screen-input = 1 .
    modify screen.
    endloop.
    else.
    loop at screen.
    if screen-name = 'Name for the input field'.
    screen-input = 0 .
    modify screen.
    endloop.
    endif .
    If u r not still clear, Mention ur problem with example
    Regards,
    Prem Karthick

  • Writing 2 conditions on a table

    Hi all
    I need to impose one codition on the table
    The following are the details
    Tables
    Classes(class, type, country, numguns, bore, displacement)_
    Condition:
    If a class of ships has more than 9 guns, then their bore must be no larger than 14 inches_
    Could you please give me hint writing the above condition on a table using check constraint.....

    Dont put duplicate post your question has been answered here
    Re: how to write constraints

  • Condition statment

    Hello Forum members
    I need some tips , I ahve a sql statment , is it is posible i can put select statment in where clause
    =============================================================
    SELECT key_account, dno, name,street, city, state, zip_code, ountry_code,
    FROM key_account
    where ( select 'dno = ' || dno from key_account)
    ==============================================================
    The select statment in where clause i need to build dynamically and pass to as a where condition
    Rds

    not exacly sure what you are after but something like this?
    /* Formatted on 11/12/2010 10:38:20 AM (QP5 v5.149.1003.31008) */
    CREATE OR REPLACE TYPE key_account_type AS OBJECT
                      (key_account INTEGER,
                       dno INTEGER,
                       account_id INTEGER,
                       name VARCHAR2 (200),
                       street INTEGER,
                       city VARCHAR2 (200),
                       zip_code VARCHAR2 (200),
                       ctry_cd VARCHAR2 (200));
    CREATE OR REPLACE TYPE key_account_array AS TABLE OF key_account_type;
    FUNCTION get_key_account (pdno       IN key_account.dno%TYPE,
                              pname      IN key_account.name%TYPE,
                              pcountry   IN key_account.country%TYPE)
       RETURN key_account_array
       PIPELINED
    IS
    BEGIN
       FOR EACH IN (SELECT key_account,
                           dno,
                           name,
                           street,
                           city,
                           state,
                           zip_code,
                           country_code
                      FROM key_account
                     WHERE dno = pdno OR name = pname OR country = pcountry)
       LOOP
          PIPE ROW (key_account_type (EACH.key_account,
                                      EACH.dno,
                                      EACH.name,
                                      EACH.street,
                                      EACH.city,
                                      EACH.zip_code,
                                      EACH.country_cd));
       END LOOP;
       RETURN;
    END;
    select t1.*  from TABLE (get_key_account ( (1,'A','USA')) t, key_account t1
    where t.whatever = t1.whateverEdited by: pollywog on Nov 12, 2010 10:42 AM
    Edited by: pollywog on Nov 12, 2010 10:43 AM

  • Conditional Text in Table - Problems with row height adjustment

    Hey there,
    I’m german but I try to express my problem in english as good as I can. Not always easy with the different menu names. Hope you get what I want to say! :-)
    As you can see in my attached screenshot, I placed text in a table.
    Text height is set to: minimum 1,5 … so it adjusts to the amount of text.
    This is what I want - it should adjust the height to the marked/aktivated conditional text.
    It always adjusts the hight when I blind out the first line oder lines in between (e.g. line 2+3 of 4).
    But if I want to blind out the last line(s), there is a ¶ at the end and a extra blank line with the #.
    I know, the # stands for the following hidden Text, but why does it work with the red/green text.
    There is also text hidden (green), but the mark # is right after the last word - not in a new line.
    Has anyone a solution for this?
    Thanks in advance!

    That's ok so far. A paragraph sign at the end of a text forces a new line.
    To change that do the following:
    For every condition you need another condition just for the paragraph sign that comes immediately after the condition. Not after every paragraph of one condition, but at the end of every consecutive numbers of paragraphs of the same condition.
    So in your third example you'll need two conditions more:
    1. One for the paragraph sign at the end of condition "meaasurements"
    2. One for the paragraph sign at the end of condition "price 2"
    Whenever you make the other conditions invisible, you also have to turn off the new conditions that only control the paragraph signs.
    See the following screenshots:
    Uwe

  • Conditional coloring in table row

    Hi,
    I want to show some table cells highlighted with some colors.for different condition.For example if status is active then show in green otherwise show in red.
    How can i achieve ?

    User, please tell us your jdev version!
    The way to go is to point the inline style of the component (or the style class if you have a css defined for the different colors) to a bean method. In the bean method you calculate the right color or style for the cell and return it. The bean method can access the other attributes of the current row rendered to get to the right result.
    In some easy cases you can use a ternary EL to get to the right color like
    #{row.value > 0 ? green : red}
    which will color all positive numbers in the cell green and all negative numbers red.
    Timo

  • How to find the Conditions and Condition values in table entries

    Dear Experts -
    the issue is about getting the table entries of Pricing procedure Condition type and condition values - Application Component - MS external service management.
    In case of service order Condition document number (EKKO - KNUMV) is not updated.
    KNUMV we can use for Pricing procedure - Application componant - M Purchasing.
    How to get table entries of pricing procedure - Application Componant - MS External services management.
    Thanks in Advance

    Hi
    SES releated table:
    ESKL - Account assignment specification for service line
    ESKN - Account assignment in service package
    ESLH - Service package header data
    ESLL - Lines in service package
    ESSR - Service entry sheet header data
    ESUC - External services management: Unplanned limits for contract item
    ESUH - External services management: unplanned service limits header data
    ESUP - External services management: unplanned limits for service packages
    ESUS - External services management: Unplanned limits for service types
    Regards
    Prasanna R

  • Recording of the payment condition in the table RBKP

    They would know how to say because in the moment in that are making IV (invoice verification) the payment condition is not recorded in the table RBKP. In the table we have the field even so nothing is not recorded.
    Tanks
    Joubert Carvalho

    Please check the following NOTEs.
    NOTE 432332  MIR4 - Field ZTERM is not filled
    NOTE 613761  MIR4:Payment conditions are not displayed
    NOTE 322430  MIRO: Proposal logic for terms of payment
    Best regards,
    Makoto

  • Conditional text and table numbers

    I have a source doc from which I am going to generate two user guides (I am new at this). I have two conditional tags set, which I plan to show/hide as required to generate the final PDFs.
    First snag: I have a products specification table, which is different for each guide. Using auto numbers, I have created the first table (1-1).
    Then I add the second table (prod specs for the other product). It of course shows up as table 1-2 (and all sequential tables will be misnumbered). Using the Show/Hide command, I see the correct table.
    How do I get correct sequential table numbers for each end document?
    Thanks very much.

    >  ... FrameMaker help refers to these as "series labels."
    Thanks for the further clarification, Mike.
    Just poking around on this, it's unclear exactly how many different series labels one can have. Some sources say we're limited to 53:
    default(no letter), A: to Z:, a: to z:
    Some sources say it's 63:
    default(no letter), A: to Z:, a: to z:, 0: to 9:
    which also seems to work.
    Curiously enough some other single characters appear to work as well. I just tried @:, #:, non-breaking hyphen (\x15) and generic currency symbol (\xdb) for example (this is in FM7.1, entered as \x hex codes). I suspect most basic Frame roman single "standard" characters might work, which would imply a possible 255 or so counters. Two-letter labels just get treated as literal text, as would any multi-byte Unicode I suspect.
    Adobe has no published "best practices" for series labels, but if one searches around the web, a common theme develops on conventions. Any shop would be well advised to pick a convention, and (note to self) write it down, for example:
    B: body (ordinary paragraphs)
    C: call-outs
    F: figures
    H: headings (volume, chapter, section, etc.)
    O: outline
    S: steps
    T: tables

  • Inner Join Condition For  Database Tables in JDBC Adapter

    Hi
    Is there any restriction for Number of database tables to Write Inner join Condition in JDBC.
    Thanks

    Venkat,
    No there is no restriction in Inner join. If your query executes perfectly in target Database then the same query will exceute perfectly while calling through XI.
    Best regards,
    raj.

  • Choose From List Condition on Detail table field rather than Master table

    Dear All,
    I have a master detail udo having udts @master @detail
    I need to filter my cfl object on bases of field in @detail table.
    Can you tell how do I do this.

         Try
                Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
                Dim oCons As SAPbouiCOM.Conditions
                Dim oCon As SAPbouiCOM.Condition
                oform = sbo_app.Forms.Item("formuid")
                oCFLs = oform.ChooseFromLists
                Dim oCFL As SAPbouiCOM.ChooseFromList
                Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
                oCFLCreationParams = sbo_app.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                ' Adding 2 CFL, one for the button and one for the edit text.
                oCFLCreationParams.MultiSelection = False
                oCFLCreationParams.ObjectType = "yourobjectname"
                oCFLCreationParams.UniqueID = "CFL1"
                oCFL = oCFLs.Add(oCFLCreationParams)
                ' Adding Conditions to CFL1
                oCons = oCFL.GetConditions()
                oCon = oCons.Add()
            'here which field u want to filter
                oCon.Alias = "CardType"
         'here condition
                oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                oCon.CondVal = "C"
                oCFL.SetConditions(oCons)
                ' oCFLCreationParams.UniqueID = "CFL2"
                'oCFL = oCFLs.Add(oCFLCreationParams)
            Catch
                MsgBox(Err.Description)
            End Try

Maybe you are looking for

  • HT1918 how can i make an apple id account without a credit card?

    how can i make an apple id account ? it says i need a credit card but i dont have one how can i get passed this?

  • PDF file size expansion problem

    A colleague sends me a 4 MB PDF file from his Dell.  I receive it on my Macbook Pro and save it; it's now a 7.6 MB file.  I write a new one line email, and attach the PDF to my email; it now shows up as a 9.8 MB attachment.  When I send; the email si

  • Huge file size for .ai and .eps

    Recently I upgraded fo Illustrator CS6 and found something that is going to screw up my working with clients. The problem is that the .ai and .eps files are having really huge size (67MB on an average). I have used about 6 images (jpeg at 1024x768, l

  • Role oracle application express

    Hi I am new in Oracle application express I have created one application in that application there are sevral form for example there are form like A,B,C,D,E,F I have created some user,but I dont want to give rights for some user like creating or edit

  • Is the lightroom installer broken ... I cant get the CC version to install

    Just upgraded to a new Hard Drive and re installing everything. I downloaded PS earlier, and that was fine. I keep getting an error with Lr Exit Code: 7 Please see specific errors below for troubleshooting. For example,  ERROR: ----------------------