SQL for webADI fields

Hello,
I need a SQL to retrieve the fields and another field to show whether it is a line or header for the Project WebADI.
Can anyone provide me with this SQL if you have ever worked on this?
Thanks & Regards,
Yuvraj

SELECT DISTINCT fap.application_short_name "Application Short Name",
                  bib.user_name "Integrator User Name",
                  blb.user_name "Layout Name",
                  bicb.interface_col_name "Field Name",
                  blbb.user_name "Placement",                 
                  blc.DEFAULT_VALUE "Default Value",
                  CASE UPPER (NVL (blc.default_type, 'NONE'))
                     WHEN 'NONE' THEN 'None'
                     WHEN 'FORMULA' THEN 'Formula'
                     WHEN 'CONSTANT' THEN 'Constant'
                     WHEN 'PARAMETER' THEN 'Parameter'
                     WHEN 'SQL' THEN 'SQL'
                     WHEN 'ENVIRONMENT' THEN 'Environment'
                     ELSE 'UNKNOWN'
                  END
                     "Default Type"
    FROM apps.fnd_application fap,
         apps.bne_integrators_vl bib,
         apps.bne_layouts_vl blb,
         apps.bne_layout_blocks_tl blbb,
         apps.bne_layout_cols blc,
         apps.bne_interface_cols_b bicb,
         apps.bne_components_b bcb,
         apps.bne_param_lists_b bplb,
         apps.bne_param_list_items bpli
   WHERE     1 = 1
         AND fap.application_id = bib.application_id
         -- bne_integrators_b | bne_layouts_b
         AND bib.integrator_code = blb.integrator_code
         AND bib.application_id = blb.integrator_app_id
         -- bne_layouts_b | bne_layout_blocks_b
         AND blb.layout_code = blbb.layout_code
         AND blb.application_id = blbb.application_id
         -- bne_layout_blocks_b | bne_layout_cols
         AND blbb.layout_code = blc.layout_code
         AND blbb.application_id = blc.application_id
         AND blbb.block_id = blc.block_id
         -- bne_layout_cols | bne_interface_cols_b
         AND blc.application_id = bicb.application_id
         AND blc.interface_code = bicb.interface_code
         AND blc.sequence_num = bicb.sequence_num
         -- bne_interface_cols_b | bne_components_b
         AND bicb.application_id = bcb.application_id
         AND bicb.val_component_code = bcb.component_code
         -- bne_components_b | bne_param_lists_b
         AND bcb.param_list_code = bplb.param_list_code
         -- bne_param_lists_b | bne_param_list_items
         AND bplb.param_list_code = bpli.param_list_code
         AND blbb.language = 'US'
         AND fap.application_short_name = 'PA'
ORDER BY 1, 2;

Similar Messages

  • SQL for webadi layout

    Hello friends,
    i badly need a sql for the HRMS webadi layout setup.
    If you have it, please please post it in the thread..
    thank you very much.
    Edited by: Lovvyrules on Mar 15, 2012 3:26 PM

    10. Creating Layouts and Mappings
    10.1. Creating Layouts
    A L a pa eate document service that indicates what columns are to be included
    in a y the Layout.
    Layouts can be seeded with your application. Layouts can be defined to create documents that do not offer
    upload, in addition to ones that provide upload capability. UI exists for Layout creation:
    1. Select “Define Layout” on t ice home page
    10.1.2. Select an Integrator and pre
    ayout isrameter given to the Cr
    document. The placement of these columns within the document is also indicated b
    10.1.
    he self serv
    ss “Go”. 1 r. The
    rovide
    upload. Press “Define Layout” to create a new layout, or update, duplicate or delete existing
    s.
    0.1.3. The following screen shows all of the Layouts that have been defined for an IntegratoReporting column indicates layouts that can only be used to create document that do not p
    layout 10.1.4.
    at
    20 c or less. The only valid characters are: Uppercase 'A'..'Z', '0'..'9' and '_'.
    1 u
    lumns to include in your Layout. It also determines whether or not
    upload purposes. The first selection in the drop
    box will allow a Layout to be generated for upload. This Field list contains all of the columns
    Enter a Name and Key for your Layout and select a Field List. The Key is a unique code that th is used to reference the Layout when calling the BneApplicationService. It must be a string of haracters
    0.1.5. Select a Field List. The Field list selection determines the group of columns available to yowhen determining which co
    your Layout can be used to create a document for down
    Company Confidential - For internal use only
    87
    defined for Interfaces created for upload (BNE_INTERFACES_B.UPLOAD_TYPE = 1). All of the other values in the LOV provide lists of columns that can be used to create Layouts that do not offer upload.
    required columns (header/Lines).
    10.1.6. Enter the location for the
    10.1.7. Select the optional fields to be included in the Layout and their location (header/Lines).
    Note: UI does not exist to define the column order in the document when a particular Layout is
    used. Update BNELAYOUT COLS.SEQUENCE NUM to accomplish this.
    Company Confidential - For internal use only
    88
    .8.2. Constant - Default Type used when the actual value in Default Value is used as the
    efault Type when Default Value is an environmental variable. Valid
    tsid, sob.periodsetname,
    sob.accountedperiodtype, sob.currencycode, sob.latestencumbranceyear, sob.adbflag,
    sob.consolidationflag, sob.transactioncalendarid, sob.mandate, sob.maxdate
    10.1.8.4. Parameter – Default type when Default Value is the name of a parameter passed to
    BneApplicaionService.
    10.1.8.5. SQL – Default Type used when a SQL statement is entered into Default Value. Web
    A and automatically populate the document with the result. If more than
    one value is returned from the query, the first value returned will be used. You may use the
    $.userid
    10.2. Creating Mappings
    A Mapping links Cont o Interface columns. This relationship between the columns in the result
    set o
    UI exists for Mapping Creation (Note that Mappings for reporting Interfaces are not created through the
    Mapping U u
    10.2.1. Self- Service home page.
    10.2.2.
    10.1.8. Enter default values you would like to automatically appear for columns when the document is created. There are five types of defaults you may set: 10.1.8.1. None – Default Type when

  • Setting default value for form field assoc with a table column

    On a "Create Record" situation I was trying to set the default values of some form fields using a page level "Process". These form fields have Source Type = Database Column. It wasn't working, I could only set non-db assoc form field values no matter when the "Process" was set to exec. From some other posts it seems that this is by design, ie. not being able to programatically set the initial values of form fields that are sourced to db columns. I was hoping to have just one "Process" that would exec to set these initial values in one place rather than scattered about for each field that needed a default value. These particular default values come from ref tables and may be different for each user.
    So, it looks like I have to use a "Default Value" plsql chunk for each field on the form itself or else set their value on the calling form's Redirect in the "Set these Items" area.
    Is this correct?

    You could define a database function which accepts the name of the item and the user ID of the user running the application. Based on the item name and the user ID have the function return the appropriate initial value. Invoke this function in a "Default Value" PL/SQL block.
    Does that help in centralizing your initial values? You could have one function per page or one function per application. I would do one function per application.

  • Need help with SQL for Pie Chart

    I am trying to create a pie charge which would have 3 slices.
    Following sql gives me the expected values when I run the sql command:
    select
    round(avg(CATEGORY_1 + CATEGORY_2 + CATEGORY_3 + CATEGORY_4 + CATEGORY_5),0) "OD Engagements",
    round(avg(CATEGORY_6 + CATEGORY_7 + CATEGORY_13),0) "Talent Engagements",
    round(avg(CATEGORY_8 + CATEGORY_9 + CATEGORY_10 + CATEGORY_11 + CATEGORY_12),0) "Other Engagements"
    from OTD_PROJECT
    where STATUS in ('Open','Hold')
    I get 3 columns labeled: OD Engagements, Talent Engagements and Other Engagements with the correct averages based on the the data.
    I have tried several ways to try to get this to work in the SQL for a pie chart, but keep getting the invalid sql message and it won't save. I also tried saving without validation, but no data is shown on the chart at all.
    I want to have a pie, with 3 slices, one labeled OD Engagements with a value of 27, one labeled Talent Engagements with a value of 43 and one labeled Other Engagements with a value of 30. Then I want to be able to click on each pie slice to drill down to a secondary pie chart that shows the breakdown based on the categories included in that type.
    Since I am not grouping based on an existing field I an unsure what the link and label values should be in the chart sql.

    You'll need something like the below. I have no idea what the URL for the drilldown needs to be. It should create an appropriate link in your app for the particular slice. Mainly the code below breaks the SQL results into three rows rather than three columns. It may well have a syntax error since I can't test.
    select linkval  AS LINK,
           title    AS LABEL,
           calc_val AS VALUE
    FROM   (SELECT 'OD Engagements' AS title,
                   round(avg(CATEGORY_1 + CATEGORY_2 + CATEGORY_3 + CATEGORY_4 + CATEGORY_5),0) AS calc_val,
                   'f?p=???:???:' || v('APP_SESSION') || '::NO:?' AS LINKVAL
            from   OTD_PROJECT
            where  STATUS in ('Open','Hold')
            UNION ALL
            SELECT 'Talent Engagements' AS title,
                   round(avg(CATEGORY_6 + CATEGORY_7 + CATEGORY_13),0) AS calc_val,
                   'f?p=???:???:' || v('APP_SESSION') || '::NO:?' AS LINKVAL
            from   OTD_PROJECT
            where  STATUS in ('Open','Hold')
            UNION ALL
            SELECT 'Other Engagements' AS title,
                   round(avg(CATEGORY_8 + CATEGORY_9 + CATEGORY_10 + CATEGORY_11 + CATEGORY_12),0) AS calc_val,
                   'f?p=???:???:' || v('APP_SESSION') || '::NO:?' AS LINKVAL
            from   OTD_PROJECT
            where  STATUS in ('Open','Hold')
           );

  • Dynamic Sources for a field in Oracle Reports

    Hi there,
    I am sure someone might have encountered this problem.
    I have six Queries in Data Model. Based on certain parameter value, I need to change the source field setting for each field in the report
    output.
    e.g in Report LayOut Model, I have a field F_1. The source for this field in
    the Property pallette is COL1 which is coming from Query1.
    I need to assign a new source based on parameter value for field F_1 to
    COL2 from Query2 or COL3 from Query3 or COL4 from Query4, COL5 from Query5, COL6 from Query6 in the Before Report Trigger. Is there any way to achieve this using srw or any other PL/SQL code?
    This way I can save a lot of devlopment time and use a single physical layout for six different reports and avoid the hassles of creating frames,
    repeating frame and formatting.
    Any help greatly appreciated.
    Let me know if something is not clear in the email. I will provide
    additional information

    Ashok,
    Looks like you've landed in the wrong Forum - this one is for Oracle HTML DB.
    Thanks,
    - Scott -

  • Is there a character limit for a field in CrystalReports?

    Is there a character limit for a field in CrystalReports?
    Hello,
    I'm trying to display a long text (+100.000 characters) stored in a MySql database in CrystalReports but CR is not showing the complete text. Is this because there is a length limit for fields in CR?
    Thanks,
    Eddy G.

    This is not a great answer, but you can base your report on a SQL Command, then use something like this for the command(MS SQL):
    select
      case when length(table.field) > 65535
          then substring(table.field,1,65535)
          else table.field end as field_part1,
      case when length(table.field) > 65536+65535
          then substring(table.field,65536, 65535)
          when length(table.field) between 65536 and 65536+65535
          then substring(table.field,65536, length(table.field)-65535)
          else '' end as field_part2
    from table...
    Then in the report, display both fields where you want the BLOB data.
    HTH,
    Carl

  • How to specify multiple sequence for multiple fields in a primary key!

    Hi,
    i have a table which has about 15 fields, one of the field is primary key and i am able to specify the sequence for it using toplink and when the object is created through toplink the sequence get generated automatically, which is fine.
    Now i have to add another sequence generated field to the table this field is not nullable and
    i am looking for a way in toplink to specify the sequence for this field too, so that when we create objects through toplink the value for the field is automatically generated instead of us fetching the next value from sequence using a sql statement and then using the set method for the field.
    is there a way i can specify a sequence for another field through toplink, while keeping the sequence settings for the primary field untouched.
    thanks for your help!
    -

    TopLink only supports a single sequence field in its' mappings. There should be an API you can use to get another sequence number from an event, but I could not find an easy one (please log a bug for this on EclipseLink). The following code might work if you define the other sequence in TopLink, but you could also just execute the raw SQL as you are doing.
    i.e. something like,
    preInsert(DescriptorEvent event) {
    MyObject object = (MyObject) event.getObject();
    object.setOtherId(event.getSession().getDatasourcePlatform().getSequence("MY_OTHER_SEQ").getGeneratedValue(event.getSession().getAccessor(), event.getSession()));
    -- James : http://www.eclipselink.org

  • Bad data returned using DSEE6.3: JDBC Data View to DB2 for CHAR fields

    I have created a JDBC dataview to a DB2 database using com.ibm.as400.access.AS400JDBCDriver. When using ldapsearch, the data returned is inconsistent with that which is on the database. The DB2 table has data types of CHAR, DECIMAL, and NUMERIC. For the Decimal and Numeric fields, I am not experiencing a problem. The data returned here maps exactly to that which is on the table. For CHAR fields, I get mixed results.
    When defining JDBC attributes in DSEE, I mapped the sql-syntax attribute accordingly for each corresponding attribute on the DB2 table. As a side note, I also configured each attribute so the ldap-syntax = ces (Case sensitive). Also, I could not find a way to define the length of the char for my JDBC attribute. I'm not sure if there's supposed to be a way that I just haven't figured out yet.
    For the CHAR fields, in some cases I get what's on the data source. In other cases, I don't. I've tried to find a pattern but have been unlucky so far. Many fields with length of just 1 come back ok, but a few of length 1 are incorrect. Some fields bigger then length 1 are ok, but the majority come back with garbage. Coincidently or not, it almost looks like a hash of some sort. I'm wondering if there is a character on the datasource that's causing problems with DSEE figuring out where the end of the string is. I'm using NetBeans to look at the database, but I don't have direct access to the DB2 database at this point to see the data directly.
    Has anyone experienced something simliar or have any suggestions as to further research of this problem?

    Upon further testing I have found that the problem mentioned exists only when using ldapsearch. When I used an ldap browser, the char fields looked as expected.

  • SQL for self foreign key has me baffled

    Hi guys,
    This is probably really simple. I am wanting to write an sql
    for a dropdown menu for my top nav in my application. What it is,
    is I have one column for ID ( primary ) and another for subID and a
    page name ( txt) - seems like it would be simple , but I can't seem
    to get it to work.
    <cfquery name="getNav2" datasource="#application.db#">
    SELECT ID, subID, pagetype, dapage, menuText, title, dasorter
    FROM masterPager
    ORDER by ID, subID, dasorter, menuText, dapage
    </cfquery>
    I have tried a where statement ( WHERE ID = subID ) and that
    brings up nothing.
    There is a diagram of what I want here -
    http://www.interaktonline.com/Products/Dreamweaver-Extensions/MXCSSMenus/Documentation/Art icles/Design+Your+Database-Databases+By+Example.html?id_art=24&id_asc=222
    ( all one line ) They show the table, but not the SQL
    The group on the output ( am a little confused )
    What I want is for it to look like a tree - then I can apply
    my CSS dropdown code.
    Home
    About Us
    About_sub1
    About_sub2
    Contact
    Contact_sub1
    Contact_sub2
    Products
    Products_sub1
    Products_sub2
    Products_sub3
    Disclaimer
    Privacy
    Any help would surely be appreciated.
    Thanks in advance

    I'm not sure what database you are using, but assuming SQL
    Server, the query below will select all rows and order them either
    by their sub_ID, or if the subID is NULL, the ID field would be
    used in its place. Items with a NULL subID would be the "primary"
    (top level) menu items. This would output your items in the proper
    order. In the output, you would group by subID then loop through
    and check to see if the ID=subID (which woud indicate the top level
    menu items) and the ones following them would be the sub-menu
    items.
    <cfquery name="getNav2" datasource="#application.db#">
    SELECT ID, ISNULL(subID, ID) AS sub_id, pagetype, dapage,
    menuText, title, dasorter
    FROM masterPager
    ORDER by 2, 1, 3, 4, 5, 6
    </cfquery>
    Phil

  • SQL for pulling description from product identification section off of summ

    I tried using the DB schema tool to generate sql for pullling the Description field off of the Product Indentification section on the summary tab and it came up with zero records even though i know we have a few 1,000 specs that use that field.
    Can you send me the sql that i should be using or the table to look in to find that text??
    thanks,
    David

    This should get you started,
    select
      ss.SpecNumber as "Spec Number"
      , ssn.name as "Spec Name"
      , sdftp.Description as "Description"
    from SpecDescriptionFreeTextProp sdftp
      inner join gsmProductIdentification gpi on sdftp.fkSpecID = gpi.pkid
      inner join SpecSummary ss on gpi.fkSpecID = ss.SpecID
      inner join SpecSummaryName ssn on ssn.fkSpecsummary = ss.PKID
    where
      ssn.langid = 0

  • Check for required fields before locking subforms and submitting

    Hello,
    I have a 5-page form with many questions, to be completed by the original requestor and multiple approvers.  What I'm trying to do is have the original requestor's Submit button on p. 3 lock the input on the first three pages, but first check if all those fields have some content.  I currently have all the fields on pp. 1-3 set to "Required" in the object properties, but my script still locks them when there's is one empty one.  Here's what I have:
    //Lock portions of form
    Page1.access = "readOnly"
    Page2.access = "readOnly"
    Page3.access = "readOnly"
    //Save document, allow user to change name
    app.execMenuItem("SaveAs");
    //Submit via e-mail
    Submit_REAL.event__click.submit.target = "mailto:[email protected]" +
    "?subject=Subject text" +
    "&body=Message";
    Submit_REAL.execEvent("click");
    The automatic check for required fields happens after the pages get locked.  I would like the check to stop the process before it locks the pages.  Is there any way to check all at once that all "Required" fields on those pages have some content before allowing the script to proceed?  I know how to script it to manually check the 50 or so questions on those pages, but I would like to avoid that.  Thanks for any help.

    There are a few problems that I can see from the start. First, your code is going to pick up EVERY node that exists on these pages. Some of those nodes will not have a rawValue, and some will not have an actual name. As an example, you can take your code and create a text field to dump all of the names of the nodes that you get when you pull in all of the nodes this way. Here's an example:
    The result:
    Now, the question is, do you have a consistent naming convention for your fields that might be empty? That could be text fields, radio button lists, etc. For instance, I always prefix the names of objects in order to more easily keep track of what they are in scripts. Since I'm doing that, I can check the name of the field for tf, nf, rbl, cb, or whatever I have included to make sure that I'm checking an actual field before I check for things like rawValue.
    var nodeName = oNodes.item(nNodeCount).name;
    if (nodeName.indexOf("tf")>-1 || nodeName.indexOf("rbl") > -1 || /*check other field types*/) {
      //insert your code to check for empty answers here
    As for your line 7 issue. The syntax problem is that you've put extra parentheses in your if statement. Take out the parentheses that are just before and after the or "||".
    *This is my fourth attempt to reply. Something was going on with Adobe/Jive earlier, I suppose.

  • Data not loading for new Fields InfoObjects from DSO to InfoCube

    Hi Gurus -
                   I have a DataSource that is providing data to existing DSO then to Infocube. My client asked me to added couple fields to DataSource and get the data to DSO and then DSO to InfoCube.
    Here is the Old scenarion:   DataSource -> DSO -> InfoCube.
    Here is the New Scenation:
         DataSource ( Added new fields) -> DSO (added new InfoObjects for Corresponding DataSource FIelds) -> InfoCube( Added new InfoObjects to mapped from DSO)
    I added the new fields to DataSource, added the corresponding InfoObjects to DSO and InfoCube.
    I successfully loaded data from DataSource to DSO. Data is populating for the new Fields/InfoObjects in DSO.
    But when I load data from DSO to InfoCube, I don't see any data for New Fields InfoObjects in the InfoCube.
    Data from DSO to InfoCube is loading fine for the Old InfoObjects Fields but not for the New InfoObjects I added in InfoCube.
    -Sonali

    Hi,
    Why dont u debug the load through DTP debugging and check what happens to the source field and target field once it passes through the transformation. You can easily trace back where the fields are becoming blank.
    The loads which you have mentioned earlier did it have values in Added Records/Transferred Records column for the cube.
    Regards,
    Mani

  • Set maximum size in Text Form Field Options for a field in bi publisher RTF

    Hi All,
    How to set maximum size in Text Form Field Options for a field in bi publisher RTF.
    I have a RTF whch is having a field in that i need to add some validation condition but after adding certain condition in Add help text tab ,it is not accepting after certain length, how i can increase the length to unlimited,please help me on this
    Thnaks

    Form fields have some restrictions if your are using version lower than 11g.
    They can accommodate only 393 chars. You can add the text in both status bar and help key, which can in total consume 393 chars.
    If your code logic is more than that, it can be split into multiple form fields as Avinash suggested or you can use sub template logic and handle coding over there. Again in sub template code can be within/outside form fields.
    So there is no option for user to increase the size of form field.

  • How to get the values in the dropdown listbox  for screen field

    hi friends !
            I have selected dropdown listbox for a field in the screeen. Now, how to pass the possible values into the list. Please give the kind help.
    Regards,
    -Prasad.

    Hi Prasad,
    As Raja had mentioned, this topic has been discussed many times in this forum in the past. Please make sure that you first search the forum for related topics before you post new ones. that would avoid a lot of redundancy. Anyays, here are some of the topics you can refer to:
    Drop down list
    DROP DOWN BOX
    http://help.sap.com/saphelp_46c/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/content.htm
    Regards,
    Anand Mandalika.
    P.S: Please don't forget to reward points and close the thread once your problem is resolved.

  • Define read-only authorization for specific field(s) on a form for 11.5.9

    Dear all,
    Can you pls let me know how is it possible to define read-only authorization access for specific field(s) per responsibility / user on a form in 11.5.9?
    For example I want to protect the item master file by assigning for example to users with responsibility buyer authorization to modify the buyer information but to have read-only only authorization on other sensitive fields such as make/buy flag, expense accounts, etc
    Through UI Modeller I have only managed to make specific fields on specific forms invisible, or whole tabs invisible, to specific responsibilities but this does not cover my needs as I want them to be able to view the data of the fields but to not be able to update them

    Arun,
    Almost but not quite.. The example you've given has the person VO at the top level which includes all the id's (City, State etc). My use case is slightly different.
    query 1
         select org_id, OrgName from x;
    query 2
         select emp_id, emp_name from y where org_id = x.org_id
    query 3
         multi-table join (approx 9 tables) to retrieve depts associated to employee
         where org_id = x.org_id
         and emp_id = y.emp_id
    Rather than using LOV's would it be better to create VO's and pass in the bind parameters at run time?

Maybe you are looking for

  • # value in Variable Selection screen

    Hello,           Can you please help with the below: How do we remove # (Not Assigned) value from Variable selection screen. When I select PLANT in one of the  report, I see # value. But there are no empty values in the cube. So, I am not sure as why

  • I installed iLife '11, but iPhoto doesn't work.

    I installed iLife '11, but when I try to open iPhoto, it says it needs to be updated, but when I open Software Update, it doesn't have an update. It might help if I said iMovie and GarageBand updated no problem.

  • New Workset Creation

    Hi, I am very new to portal and m asking very basic question which might be annoying for some. KIndly excuse. I created new Role->workset -> Page ->URL Iview . I assigned that role to me as a user. But when I login, I am not able to see that workset

  • Search a txt file

    how can i search for a certain word in a txt file?

  • How to unsubscribe from Skype?

    How do I unsubscribe to Skype? seems difficult, can't phone someone!!!