How to load binding conditionally

Hi All,
I have a page where I have two set of attributes. If condition=="A" then I need two set of attributes.
Though I display only one set of attributes the second set of attributes are used to set the read-only property of the attributes which are in the first set.
When I say a set that means all those attributes are from the same iterator.
If condition=="B" then I don't need second set of attributes. That means all the attributes from second iterator are not required.
Even I set render=false for the attributes from second iterator those bindings are available.
That means even after setting render=false for second set attributes if I display an output text with #{bindings.secondSet.Attr1}
then I can see the value. That means those bindings are loaded unnecessarily.
I don't want to load those attributes unnecessarily.
I tried with <c:if> condition also. But attribute bindings are loading from the page definition.
In pageDefinition How can we set some condition to load bindings conditionally...?
Please help.
Thanks
Abhilash

I guess you can't do that if you have the two iterators on one page.
The only thing you can do is to split the use case so that you have different pages for the condition (with different sets of iterators).
By the way, why is it so bad that the two sets are loaded? about how much variables we are talking?
Timo

Similar Messages

  • How to load DataBlock based on the Multiple Condition from another block

    Hi
    How to load a Data Block based on the Multiple values from another block. For eg.EMP is the Master Data block and SAL is the child Datablock.When query JOS% in the Master Block(EMP) then display all the Sal details in the SAL block for all the employees starting with JOS , When clicking one buton or if it is possible in the loadin of the MasterBlock

    Hi,
    I presume you are using database block relations.
    Put automatic query = yes in relation properties.
    Do you have block level trigger ON-POPULATE-DETAILS?
    In that you can find the relation and query - Using built-ins
    Find_Relation and Query_Master_Details

  • How to load flatfiles using Owb?

    Hai all,
    I would like to access a flat file (.csv files) using owb. I am able to import the files into source module of owb. But while executing the mapping , I got the following error...
    Starting Execution MAP_CSV_OWB
    Starting Task MAP_CSV_OWB
    SQL*Loader: Release 10.1.0.2.0 - Production on Fri Aug 11 16:34:22 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Control File: C:\OWBTraining\owb\temp\MAP_CSV_OWB.ctl
    Character Set WE8MSWIN1252 specified for all input.
    Data File: \\01hw075862\owbfiles\employee.csv
    File processing option string: "STR X'0A'"
    Bad File: C:\OWBTraining\owb\temp\employee.bad
    Discard File: none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array: 200 rows, maximum of 50000 bytes
    Continuation: none specified
    Path used: Conventional
    Table "OWNER_STG"."EMP_EXCEL", loaded from every logical record.
    Insert option in effect for this table: APPEND
    Column Name Position Len Term Encl Datatype
    "EMPNO" 1 * , CHARACTER
    "EMPNAME" NEXT * , CHARACTER
    value used for ROWS parameter changed from 200 to 96
    SQL*Loader-500: Unable to open file (\\01hw075862\owbfiles\employee.csv)
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: The system cannot find the file specified.
    SQL*Loader-2026: the load was aborted because SQL Loader cannot continue.
    Table "OWNER_STG"."EMP_EXCEL":
    0 Rows successfully loaded.
    0 Rows not loaded due to data errors.
    0 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Space allocated for bind array: 49536 bytes(96 rows)
    Read buffer bytes: 65536
    Total logical records skipped: 0
    Total logical records read: 0
    Total logical records rejected: 0
    Total logical records discarded: 0
    Run began on Fri Aug 11 16:34:22 2006
    Run ended on Fri Aug 11 16:34:22 2006
    Elapsed time was: 00:00:00.09
    CPU time was: 00:00:00.03
    RPE-01013: SQL Loader reported error condition, number 1.
    Completing Task MAP_CSV_OWB
    Completing Execution MAP_CSV_OWB
    could you please help me..
    thanks and regards
    gowtham sen.

    Thank you my friends.
    As you said, I gave the file name as wrong.
    Its solved. Thank you....
    I have another probem.
    How to load data from excel file to owb? Is it possible the way we do for flat files?
    I did using ODBC + HS Services.
    But after creating a mapping , and its deploying I got the following error.
    "error occurred when looking up remote object <unspecified>.EmployeeRange@EXCEL_SID.US.ORACLE.COM@DEST_LOCATION_EXCEL_SOURCE_LOC
    ORA-00604: error occurred at recursive SQL level 1
    ORA-02019: connection description for remote database not found
    Could you please help me..
    Thanks and regards
    Gowtham

  • How to load a image after getting it with a file chooser?

    I'm still starting with JavaFX, and I simply would like to know how to load the image (e.g. png or jpg) that I selected using a FileChooser in the user interface. I can access the file normally within the code, but I'm still lost about how to load it appropriately. Every time I select a new image using the FileChooser, I should discard the previous one and consider the new one. My code is shown below:
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.shape.Rectangle;
    import javafx.scene.paint.Color;
    import javafx.scene.layout.HBox;
    import javafx.scene.control.Button;
    import javax.swing.JFileChooser;
    import javafx.scene.image.ImageView;
    import javafx.scene.image.Image;
    var chooser: JFileChooser = new JFileChooser();
    var image;
    Stage {
        title: "Image"
        scene: Scene {
            width: 950
            height: 500
            content: [
                HBox {
                    layoutX: 670
                    layoutY: 18
                    spacing: 10
                    content: [
                        Button {
                            text: "Open"
                            action: function() {
                                if (JFileChooser.APPROVE_OPTION == chooser.showOpenDialog(null)) {
                                    var imageFile = chooser.getSelectedFile();
                                    println("{imageFile.getCanonicalFile()}");
                                    image = Image{
                                        width: 640
                                        url:imageFile.getAbsolutePath()
                // Image area
                Rectangle {
                    x: 10
                    y: 10
                    width: 640
                    height: 480
                    fill: Color.WHITE
                ImageView {
                    x: 10
                    y: 10
                    image: bind image
    }Thank you in advance for any suggestion to make it work. :)

    As its name implies, the url param expect... an URL, not a file path!
    So, use {color:#8000FF}url: imageFile.toURI().toURL(){color} instead.

  • "how to load a text file to oracle table"

    hi to all
    can anybody help me "how to load a text file to oracle table", this is first time i am doing, plz give me steps.
    Regards
    MKhaleel

    Usage: SQLLOAD keyword=value [,keyword=value,...]
    Valid Keywords:
    userid -- ORACLE username/password
    control -- Control file name
    log -- Log file name
    bad -- Bad file name
    data -- Data file name
    discard -- Discard file name
    discardmax -- Number of discards to allow (Default all)
    skip -- Number of logical records to skip (Default 0)
    load -- Number of logical records to load (Default all)
    errors -- Number of errors to allow (Default 50)
    rows -- Number of rows in conventional path bind array or between direct path data saves (Default: Conventional path 64, Direct path all)
    bindsize -- Size of conventional path bind array in bytes (Default 256000)
    silent -- Suppress messages during run (header, feedback, errors, discards, partitions)
    direct -- use direct path (Default FALSE)
    parfile -- parameter file: name of file that contains parameter specifications
    parallel -- do parallel load (Default FALSE)
    file -- File to allocate extents from
    skip_unusable_indexes -- disallow/allow unusable indexes or index partitions (Default FALSE)
    skip_index_maintenance -- do not maintain indexes, mark affected indexes as unusable (Default FALSE)
    commit_discontinued -- commit loaded rows when load is discontinued (Default FALSE)
    readsize -- Size of Read buffer (Default 1048576)
    external_table -- use external table for load; NOT_USED, GENERATE_ONLY, EXECUTE
    (Default NOT_USED)
    columnarrayrows -- Number of rows for direct path column array (Default 5000)
    streamsize -- Size of direct path stream buffer in bytes (Default 256000)
    multithreading -- use multithreading in direct path
    resumable -- enable or disable resumable for current session (Default FALSE)
    resumable_name -- text string to help identify resumable statement
    resumable_timeout -- wait time (in seconds) for RESUMABLE (Default 7200)
    PLEASE NOTE: Command-line parameters may be specified either by position or by keywords. An example of the former case is 'sqlldr scott/tiger foo'; an example of the latter is 'sqlldr control=foo userid=scott/tiger'. One may specify parameters by position before but not after parameters specified by keywords. For example, 'sqlldr scott/tiger control=foo logfile=log' is allowed, but 'sqlldr scott/tiger control=foo log' is not, even though the position of the parameter 'log' is correct.
    SQLLDR USERID=GROWSTAR/[email protected] CONTROL=D:\PFS2004.CTL LOG=D:\PFS2004.LOG BAD=D:\PFS2004.BAD DATA=D:\PFS2004.CSV
    SQLLDR USERID=GROWSTAR/[email protected] CONTROL=D:\CLAB2004.CTL LOG=D:\CLAB2004.LOG BAD=D:\CLAB2004.BAD DATA=D:\CLAB2004.CSV
    SQLLDR USERID=GROWSTAR/[email protected] CONTROL=D:\GROW\DEACTIVATESTAFF\DEACTIVATESTAFF.CTL LOG=D:\GROW\DEACTIVATESTAFF\DEACTIVATESTAFF.LOG BAD=D:\GROW\DEACTIVATESTAFF\DEACTIVATESTAFF.BAD DATA=D:\GROW\DEACTIVATESTAFF\DEACTIVATESTAFF.CSV

  • BAPI_PO_CREATE1 - help loading item condition !!

    Guys,
    I am having problem loading BAPI_PO_CREAT1 Structure - POCOND. I am currently using the following values for the BAPI structure :
    POCOND-COND_VALUE = '20'  " NET PRICE
    POCOND-COND_TYPE = 'ZP11' " Custom value type
    POCOND-CURRENCY = 'USD'
    POCOND-COND_UNIT = 'EA'
    POCOND-CHANGE_ID = 'I' " I have also tried using code  'U'.
    I applied the same data to BAPI Structure POCONDHEADER and set their respective change tool bar to 'X', I am getting an error message : "No Condition determined" .
    Looking forward for your help, also a sample code will be appreciated showing how to load this BAPI Structure.
    - Frank

    Hi Frank,
    I have used the following code in my PO Upload program and it works fine:
    FORM populate_pricing .
      CLEAR: tbl_pocond,
             tbl_pocondx.
    * Pricing Conditions
      tbl_pocond-itm_number    = tbl_item-ebelp.
      tbl_pocond-cond_st_no    = '1'.
      tbl_pocond-cond_type     = 'PB00'.
      tbl_pocond-cond_value    = tbl_item-netpr.
      tbl_pocond-currency      = tbl_header-waers.
      tbl_pocond-change_id     = 'I'.
      APPEND tbl_pocond.
      tbl_pocondx-itm_number    = tbl_item-ebelp.
      tbl_pocondx-cond_st_no    = '1'.
      tbl_pocondx-itm_numberx   = 'X'.
      tbl_pocondx-cond_st_nox   = 'X'.
      tbl_pocondx-cond_type     = 'X'.
      tbl_pocondx-cond_value    = 'X'.
      tbl_pocondx-currency      = 'X'.
      tbl_pocondx-change_id     = 'X'.
      APPEND tbl_pocondx.
    ENDFORM.                    " populate_pricing
    Hope this helps.
    Cheers,
    Pat.
    PS. Kindly assign Reward Points to the posts you find helpful.

  • How to Load Revalued Assets in FA at the time of Data Conversion

    Dear Experts,
    How to Load Revalued Assets in FA at the time of Data Conversion?? Please help me
    Thanks & Regards
    Laxman

    Let me ask agagin to all experts.
    I want to make A condition to be repriced at the time of billing.
    For this, I have to set condition category as 'L' (Generally new when copying).
    But I do not want to do in that way becauuse I am maintaining big operated system now.
    In addition, though I migrate open orders after changing config. as 'L', it is almost impossible for use to migrate because we have more than a thound open orders per a DAY as Globalized system.
    That is why I am asking.
    Simply I can create new condition but as I mentioned, there are various recycling fee so we already created about 10 conditions. And this recycling conditions are linked to REA package of SAP. So creating another 10 more conditions can not be a way for us.
    At last, what I want is not to be shown this condition only in billing doc.
    'A' condition should be displayed in both Sales order and Billing doc.
    And simultaneously, when the billing is created and if user changed 'A' condition master, then new value which is different from sales order have to be reflected in billing doc.
    Thank you in advance.

  • How to load the CategoryName, instead of CategoryID in ListView?

    I have a Listview control in a Windows Form.
    The listview contains 3 columns
    - CategoryID
    - Product Description
    - Price
    The question is: how to load the "Category Name", instead of "Category ID"?
    Does listview support Dictonary Blinding?
    Please help

    Hi iHandler,
    As CoolDadTx said, the key part of Dictionary wouldn't be available.
    If the Value part of your Dictionary is List Type, it can be binded to listView, but I suggest you using TreeView instead of ListView. Because The Dictionary type is
    One to One or One to Many relationship. I can be easily binded to
    TreeView for displaying the relation.
    Here I make a sample you could refer to which can load the TreeView with a Dictionary.
    private void LoadTreeView(Dictionary<string, List<string>> treeStatusDic)
    //load Key Node
    foreach (string key in treeStatusDic.Keys)
    this.treeView1.Nodes.Add(key);
    //load child Node
    foreach (TreeNode tn in this.treeView1.Nodes)
    if (treeStatusDic.ContainsKey(tn.Text))
    List<string> ls = treeStatusDic[tn.Text];
    foreach (string t in ls)
    tn.Nodes.Add(t);
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I bind a number(8,2) in OCI

    how do I bind this information?
    I have tries SQLT_NUM with a unsigned char[8]
    also a SQLT_FLT
    Any thought apreciated.
    Thanks

    I have a 64-bit Windows 7 laptop.
    I entered the following commands:
    cd \windows\syswow64
    regsvr32 C:\Program Files (x86)\Adobe\Adobe RoboHelp 8\Redist\HHActiveX.dll
    The result was an error message: "...failed to load...module could not be found"
    I created a folder named "HHActiveX_location" on the C: drive and copied HHActiveX.dll to there.
    I entered the follwoing commands:
    cd \windows\syswow64
    regsvr32 C:\HHActiveX_location\HHActiveX.dll
    The result was an error message: "The module was loaded but the call to DllRegisterServer failed with error code 0x80070005"
    What am I doing wrong?

  • How to load Matrix report data into basic table data using ODI

    Hi,
    How to load Matrix report data into basic table data using oracle Data Integrator ?
    Requirement Description:
    Following is the matrix report data:
    JOB                       DEPT10                DEPT20 
    ANALYST                                           6000
    CLERK                   1300                     1900 Need to convert it into below format:
    JOB                             Dept                        Salary
    ANALYST                  DEPT10     
    ANALYST                  DEPT20                     6000
    CLERK                       DEPT10                    1300
    CLERK                       DEPT20                    1900
        Thanks for your help in advance. Let me know if any further explanation is required.

    Your list seems to be a little restrictive, you can do a lot more with ODI procedures.
    If you create new procedure, and add a step. In the 'command on source' tab set you technology and schema as per your source database. Use the unpivot functionality as described in the link, please, rather than using 'SELECT *' use the appropriate column names and alias them for eg:
    SELECT job as job,
    deptsal as deptsal,
    saldesc as saledesc
    FROM pivoted_data
    UNPIVOT (
    deptsal --<-- unpivot_clause
    FOR saldesc --<-- unpivot_for_clause
    IN (d10_sal, d20_sal, d30_sal, d40_sal) --<-- unpivot_in_clause
    Then in your 'command on target' tab set the technology and schema to your target db, then put your INSERT statement for eg:
    INSERT INTO job_sales
    (job,
    deptsal,
    saledesc
    VALUES
    :job,
    :deptsal,
    :saledesc
    Therefore you are using bind variables from source to load data into target.
    Obviously if the source and target table are in the same database, then you can have it all in one statement in the 'command on target' as
    INSERT INTO job_sales
    (job,
    deptsal,
    saledesc
    SELECT job as job,
    deptsal as deptsal,
    saldesc as saledesc
    FROM pivoted_data
    UNPIVOT (
    deptsal --<-- unpivot_clause
    FOR saldesc --<-- unpivot_for_clause
    IN (d10_sal, d20_sal, d30_sal, d40_sal) --<-- unpivot_in_clause
    also set the log counter as 'Insert' on the tab where your INSERT statement is, so you know how many rows you insert into the table.
    Hope this helps.
    BUT remember that this feature only came out in Oracle 11g.

  • How to Delete the condition record in CRM

    HI,
    Can you please help me how to delete the condition record from condition table in CRM.
    Please explain the usage of FM CRMXIF_CONDITION_SEL_DELETE with examples.
    I have also read the documention of the function module. How to use this FM for custom defined condition table.
    (this is the code given in Documentation)
    DATA-OBJECT_REPRESENTATION         = 'E'
    DATA-SEL_OPT-CT_APPLICATION              = 'CRM'
    DATA-SEL_OPT-OBJECT_TASK                    = 'D'
    DATA-SEL_OPT-RANGE-FIELDNAME        = 'PRODUCT_ID'
    DATA-SEL_OPT-RANGE-R_SIGN                  = 'I'    (Including)
    DATA-SEL_OPT-RANGE-R_OPTION           = 'EQ'
    DATA-SEL_OPT-RANGE-R_VALUE_LOW  = 'PROD_1'
    Thanks
    Shankar

    Hi Shankar,
    I am using the same CRMXIF_CONDITION_SEL_DELETE function module to delete condition record present in CRM.
    But it is giving me below error in the return table of the FM after i run the program. Can you please correct me if I am doing any thing wrong?
    Error in  lt_return: SMW3     CND_MAST_SEL_DEL_EXT_VALIDATE     CND_M_SD
    code:
    ls_range-fieldname = 'PRODUCT_ID''.
    ls_range-R_SIGN = 'I'.
    ls_range-R_OPTION = 'EQ'.
    ls_range-R_VALUE_LOW = '123456'.
    APPEND ls_range TO lt_range.
    MOVE lt_range TO ls_entry-SEL_OPT-range.
    ls_data-SEL_OPT-object_task = 'D'.
    ls_data-SEL_OPT-ct_application = 'CRM'.
    ls_data-object_representation = 'E'.
    CALL FUNCTION 'CRMXIF_CONDITION_SEL_DELETE'
      EXPORTING
        DATA          = ls_date
    IMPORTING
       RETURN        = lt_return
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      IMPORTING
        return = lt_ret.
    Edited by: Saravanaprasad Nadar on Jul 7, 2010 1:27 AM

  • How to load a Jar file in the class path?

    How to load a Jar file which contains class files, images, etc.. in the classpath without using URLClassLoader.

    You don't "load" jars. If it's on the classpath, you can obtain individual resources from it using various methods on either Class or ClassLoader. Do you mean "how to add a jar to the classpath at runtime"? Can't be done without using a classloader, typically URLClassLoader or a subclass thereof. Why you want to not use the proven method is beyond me. Presumably because you don't understand classloading. In which case, forget it.

  • How to load a client file in a clob using sqlcl

    How to load a client file in a clob using sqlcl

    You don't "load" jars. If it's on the classpath, you can obtain individual resources from it using various methods on either Class or ClassLoader. Do you mean "how to add a jar to the classpath at runtime"? Can't be done without using a classloader, typically URLClassLoader or a subclass thereof. Why you want to not use the proven method is beyond me. Presumably because you don't understand classloading. In which case, forget it.

  • How to change pricing Conditions in Sales order in change sales order bapi

    Hi Experts,
    How to change pricing Conditions in Sales order in change sales order bapi.
    I have used the 2 function modules bapi-changesalesorder and sd salesdocument change, But it is creating the new record , instead of changing the existing one, Could please assist regarding the same
    Thanks in Advance .
    NLN

    HI NLN
      I have just tried on my system and managed to overwrite the existing price by passing the following parameters.
      <b>Import Paramters:</b>
         SALESDOCUMENT - Sales Document Number
         ORDER_HEADER_INX - UPDATEFLAG as <b>'U'</b>.
         LOGIC_SWITCH - Import Structure - Pass 'X' to LOGIC_SWITCH-COND_HANDL.
      <b>Tables:</b>
         CONDITIONS_IN - ITM_NUMBER,
                         COND_COUNT, -> Condition counter same as KONV-ZAEHK generally it is <b>'01'</b>
                         COND_TYPE,
                         COND_VALUE,
                         CURRENCY.
         CONDITIONS_INX - ITM_NUMBER,
                          COND_COUNT,
                          COND_TYPE,
                          UPDATEFLAG as <b>'U'</b>,
                          CURRENCY.
       Hope i have clarified your query.
    Kind Regards
    Eswar

  • How to use if condition in XML Publisher Desk Top

    Hi..,
    How to use if condition in XML Publisher desk Top.
    Please guide me.
    Thanks,
    Suresh.

    What kind of condition you want to use?
    You can use Condition like this:
    <?xdofx:if condition then value1
    else if condition then Value2
    else Value3
    end if?>
    Please go thru XML Publisher User Guide.
    Thanks
    Ravi
    [email protected]

Maybe you are looking for

  • Can you purchase from the app store with someone else's appleid?

    My grandson has his own iPhone.  He uses it to play APPS.  He has his own AppleID. His father downloaded a new game using his own AppleID onto his son's iPhone. My grandson's iPhone now seems to be confused as to what AppleID it belongs to? When an A

  • Itunes won't open (Lion 10.7 itunes 10.4 and 10.5)

    Hello, I have this week updated the itunes software to 10.5 and the latest OS update but itunes crashes on opening.  It was working fine: I have Lion OS installed since it was released (from the Australian Store) and it is just now it fails. I tried

  • Discoverer portlet - Location of images for page display

    Can anyone tell me where the portlet provider knows where to find the images that appear (like the expand button image on the list of worksheets portlet). If I look at the url in the page source , it is referencing http://<myserver>:7780/.... Is it h

  • Alt key shortcut woes in InDesign CS6

    Greetings, Our company recently switched from Macs to PCs for design work. Now all of the keyboard shortcuts that had been assigned on the Mac and started with the Option key (e.g., Opt + numeric keypad 1) have switched to the Alt key on the PC (e.g.

  • New JDBC-Driver

    Hi Gurus, I have just started with the ODI, installation on my Windows 7 system works fine repository build in an Oracle XE. Now I want to integrate a JDBC driver from EXASOL/Germany. This DB handles very similar to Oracle or MySQL. So I have downloa