Binds inside the apex_item.select_list_from_query

Hello

Unable to find anything to answer my question...
Maybe someone has a tip.

Is it possible to use references to link inside of the where the statement of a query in
apex_item.select_list_from_query?

I tried with the # < Columnanme > #-rating but he had no success.

As seen here
Re: Bug or what? (SELECT_LIST_FROM_QUERY)

Denes Kubicek provided an example with #Rownum # as a parameter.
But I need inside the string query...

I want to refer to columns of the query to a query in a table as


Select
a,
b,
c,

apex_item.select_list_from_query (2, c, ' select x, y of the tab where (z = "#b #") ") sel_col,.

d,
e
FROM MyTable.

Is this possible?

Concerning
Andrée

Andrée:

Try this

select
a,
b,
c,
apex_item.select_list_from_query (2, c, 'select x, y from tab where (z = ' || b || ')   ) sel_col,
d,
e
from mytable;

CITY

Tags: Database

Similar Questions

  • Column Collection reference in APEX_ITEM.select_list_from_query

    I'm now making reference to a column in my collection in the APEX_ITEM.select_list_from_query function. Below, you can see where I tried this, but I get just an error. Any help would be greatly appreciated, thank you.

    APEX_ITEM.select_list_from_query (9, c005,'SELECT WORKLOAD_INDICATOR, wi.) APEX_DATA WORKLOAD_INDICATOR_ID. NURSE_STAFF_WORKLOAD_INDICATOR wi JOIN APEX_DATA. NURSE_STAFF_INDICATORS_WEIGHT w ON wi. WORKLOAD_INDICATOR_ID = w.WORKLOAD_INDICATOR_ID WHERE DEPT_ID = V ("P1_DEPARTMENT") AND (assets = "Y" GOLD wi.) WORKLOAD_INDICATOR_ID = ' | C005. ) GROUP OF WORKLOAD_INDICATOR, wi. Order WORKLOAD_INDICATOR_ID of sum (w.weight) DESC', NULL, 'YES', NULL, 'Select a workload indicator')

    What value there c005? If it is empty, then this might explain the error.

    If this call to apex_item is part of a larger selection, then show the selection complete. Since you concatenate c005 value in the string without any assertion there are chances of surprising characters, like whites.

    Maybe you need to encapsulate a case this whole thing all about expression in order to eliminate cases where c005 has no correct value.

    As

    cases where c005 is null or no regexp_like (c005, "\D") then

    APEX_ITEM.select_list_from_query (9, c005,'SELECT WORKLOAD_INDICATOR, wi.) APEX_DATA WORKLOAD_INDICATOR_ID. NURSE_STAFF_WORKLOAD_INDICATOR wi JOIN APEX_DATA. NURSE_STAFF_INDICATORS_WEIGHT w ON wi. WORKLOAD_INDICATOR_ID = w.WORKLOAD_INDICATOR_ID WHERE DEPT_ID = V ("P1_DEPARTMENT") AND (assets = "Y" GOLD wi.) WORKLOAD_INDICATOR_ID = ' | C005. ) GROUP OF WORKLOAD_INDICATOR, wi. Order WORKLOAD_INDICATOR_ID of sum (w.weight) DESC', NULL, 'YES', NULL, 'Select a workload indicator')

    cases of termination

  • apex_item.select_list_from_query in PL/SQL?

    Hello

    I use APEX 4.0 on a 10g database.

    I need to use the apex_item.select_list_from_query function in a PL/SQL program.
    variable varchar2(1000);
    SELECT apex_item.select_list_from_query(1,sel_name,'SELECT sel_name FROM user_selection WHERE id = (SELECT id FROM users WHERE upper(login)=upper(:APP_USER))','style="width:100%;margin-bottom:5px;"','YES','%',' ',null,'label') INTO variable FROM user_selection;
    htp.p(variable);
    Who works only the query returns many rows:
    ORA-01422: exact fetch returns more than requested number of rows
    If I add a where condition to not return clause that one line, it works.
    If I use a cursor, then I loop through the records, it works but I get several drop-down lists.

    Can someone tell me how to use this function in PL/SQL?

    Thank you.

    Yann.

    This is the current or default value. If an existing value of the database is necessary, then there must be a clause where clause to limit the extraction of a line, as you mentioned, for example

    declare
      l_sel_name varchar2(30);
    begin
      SELECT sel_name INTO l_sel_name FROM user_selection WHERE ...
      htp.p(
        apex_item.select_list_from_query(
            1
          , l_sel_name
          , 'SELECT sel_name FROM user_selection WHERE id = (SELECT id FROM users WHERE upper(login)=upper(:APP_USER))'
          , 'style=""'
          , 'YES'
          , '%'
          , ' '
          , null
          , 'label'));
    end;
    
  • How to find the dynamic inside the af acomponent ID: foreach?

    Hi friends,

    Jdev: 11.1.1.7

    I have a requirement like I need a list of books available as links. So I posted using af: foreach and inside I used af:goLink.

    I need to display the ToolTip on mouseover this link. To display the ToolTip, I used the popup. How to find the dynamic ID inside the af: foreach in java.

    If I bind the comonent, it does not work inside foreach.

    Try this way, root.findComponent("r1:it2"); it is in taskflow. On popufetchlistener you call a method to get the id of the component to get the book desc.

    Thank you

    Hello

    You can probably assign a customer attribute for elements and then using that you could get the values?

    Check out https://docs.oracle.com/cd/E21764_01/apirefs.1111/e12419/tagdoc/af_clientAttribute.html and http://jdevadf.oracle.com/adf-richclient-demo/faces/components/clientAttribute.jspx

    Arun-

  • Selection of setting inside the component af:table LOV

    Hi all

    I use Jdev 12 c.

    I can't find anything on the definition of the selection of a component of SelectOneChoice when it is inside a table.

    My use case: I'm iteration in a list of serial numbers, and ask a CreateWithParams liaison to a number of different parameters.  Those new lines appear in an af:table component.  One of these parameters can take the values 1, 2 or empty.  For this attribute, I have set up a selectOneChoice with a fixed/static LOV to the choice.  Now, the CreateWithParams is correctly set the value of the ViewObject line, but I don't know how to set the selection SelectOneChoice the correct value.  It is not done automatically.  Y at - it a way I can get the RichSelectOneChoice component in my managed java bean for each line so that I can manually set the selection of the component?

    Thanks for reading.

    Lance

    Solved the problem with a static list display object.  It was with my link layer.  The LOV was not part of the binding of the tree, so he was not updated correctly.  For those who have this problem in the future, put in place a static list view object and access it like a LOV in the view object related to af: table.

  • How to center the characters inside the cells of the comb field (text field)?

    Hello gurus,

    [Intro]

    I'm working on the preparation of the legal form of the income tax.  Due to the structure of the sophisticated form and the request of the client to prepare for the return of enormous size (more), I decided to redo the obsolete form using option "comb of" in order to reduce the size of the source and prevent problems with memory allocation on the client side.

    [Issue details]

    Legal obligation is to have the Courier New 16pt 18pt police and cells of the size of some.

    This is how the form provided by the tax authorities looks like:

    adobe1.png

    Here you can see that the characters are somehow centred inside the cells, but when I create the comb in my livecycle designer, it is not the case and I have another layout:

    adobe2.png

    Look at how the letters are placed inside the cells. After some research I discovered that there is a left margin that still exists in every cell of the comb, probably triggered by the border. Tried to edit the XML source but has not reached a significant success. The issue is not caused by the narrowness of the cells and but even with the very broad.

    Here's my current XML:

              <field h="5.7mm" name="STR_230_TOT_TX" w="60mm" x="4.264278in" y="4.458417in" anchorType="middleCenter">
                   <ui>
                      <textEdit hScrollPolicy="off">
                         <border hand="right">
                            <edge stroke="dotted"/>
                            <corner stroke="dotted" thickness="0.176mm"/>
                         </border>
                         <margin bottomInset="0mm" leftInset="0mm" rightInset="0mm" topInset="0mm"/>
                         <para hAlign="left" vAlign="top"/>
                         <comb numberOfCells="15"/>
                      </textEdit>
                   </ui>
                   <font size="16pt" typeface="Courier New"/>
                   <margin bottomInset="0mm" leftInset="0mm" rightInset="0mm" topInset="0mm"/>
                   <bind match="dataRef" ref="N140_TAX_AMOUNT"/>
                   <assist>
                      <speak disable="1"/>
                   </assist>
                </field>
    

    That's how comb field is supposed to be rendered (screenshot of documentation):

    adobe3.png

    Everything is centered and it's supposed to behavior to see.

    Are there possible solutions how to put tanks in the center of the cell?

    Hi Igor,.

    It's the police that you use that is causing the problem.

    I found it weird, your problem, so I did quickly a form with a text field with a comb.  I have not had the problem.

    So I took your snippet and added to my shape, so I have the same problem.  You use the new Courier, a policy that has the same width for all characters.  I don't know why the problem is as for me it should be in the Center as for all other fonts.  I would count this as a bug to support.

    I know that's not a solution for you, but this seems to be the root of the problem.  Maybe you can find another font, like Courier New, but has no width fixed.  I looked and it seems that there is a font called depicted, which uses the same letters, but is proportional.  The police is not downloadable for free, so I can't test for now.  Another page says this: "there is a proportional font that looks a bit like Courier. 'S called it American Typewriter. "Yet once again, I have not tested.

    • Depicted Serif is a proportional font by using Courier characters as a base.

    http://en.wikipedia.org/wiki/Courier _(typeface)

  • Reference value of XML node inside the MXML syntax

    Hello

    I got ToolTips, which the text is provided by the xml file. The xml structure goes like this:

    <myButton>this is text for the toolTip</myButton>
    <myHBox>this is another text for the toolTip</myHBox>
     etc. 
    

    And I assign the text to the ToolTip in actionscript, like this:

    myButton.toolTip = myXML[myButton.id]
    myHBox.toolTip = myXML[myHBox.id]
    
    

    I was wondering if there is a way to assign the ToolTip text inside the MXML syntax. Right now it does not work because of the [square brackets].

    When I do this:

    <Button id="myButton" toolTip="{myXML[myButton.id]}"

    I got error: data binding will not be able to detect changes when using square brackets operator.

    Use '. '. (dot)

    hope this helps

    Baker v

  • Customcancel button doesn' reset the components of entrance inside the af: panelWindows

    We use adf Rich Popup of the elements inside the table update. The popup has an af:panelwindows inside. When the user clicks on the button inside each row in the table, the popup displays the details of that element, and user can update the information and close the pop-up window.
    or click Cancel and the popup will be closed without making any changes to the item.
    We decide to have our custom undo button to undo the insert and update.
    When clicking on the button cancel windows was closed, but when he opened the next time for another element inside the table the af:inputtext component has not updated / reset and
    for all other times, the data inside the inputtext component were still given to the first element. When you debug carefully I saw that the linked object is initialized and the value new object element
    but somehow this update server-side has not been reflected in the inputtext popup components. Point interesting is that outputtext were themselves refreshed and reset for the new value, the problem is only with the components of entry.
    (1) I've rechecked closing popup java scriped
    (2) I've put on so many closing is server-side and client-side
    (3) and of course I double checked that Im using right contentDelivery which must be set to "lazyUncached" when you want the popup read the binded value server side when his open ever.

    It worked again!
    Finally I read some documents on af:panelwindow and af:dialogbox.
    And I understand that although two this components can be used inside the pop-up window for the case to get the input data, af:panelwindow does not support custom Cancel button
    And by simply changing the panelwindow dialogbox, now all the compenentc of entry are reset to the value current binded to the side server.
    And don't forget that the cancel method should be called from server-side (listener client-side does not work!) with ActionListener bound to a method server that sends a java script to close the pop-up window.
    And don't forget no immediate command button should be set to 'true '.

    Is there another way to have customized cancel inside the af button: panelWindow?


    Thank you
    Lee

    Edited by: user12836610 01-jun-2010 03:10

    Edited by: user12836610 01-jun-2010 06:08

    Edited by: user12836610 01-jun-2010 06:14

    If you don't want to write your own...
    I use this method:

    private void resetValueInputItems(UIComponent component)
    {
      AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
      List items = component.getChildren();
      for ( UIComponent item : items ) {
    
        resetValueInputItems(adfFacesContext,item);
    
        if ( item instanceof RichInputText ) {
          RichInputText input = (RichInputText)item;
          if ( !input.isDisabled() ) {
             input.resetValue() ;
             adfFacesContext.addPartialTarget(input);
          };
         } else if ( item instanceof RichInputDate ) {
          RichInputDate input = (RichInputDate)item;
          if ( !input.isDisabled() ) {
             input.resetValue() ;
             adfFacesContext.addPartialTarget(input);
          };
         }
       }
    }
    

    You call this method with either the layout container that contains all your fields (in your case the popup or panelwindow.

    Timo

  • Command link inside the table to an external site in the pop-up window

    Hello
    I am currently having a command to bind inside a table that sits on the table id. I know that if I'm in control of the landing page, I use setCurrentRowKeyValue. However, I have no control of the external Web site. So I can't add it in my faces-config file. XML? I tried to put a GoLink and a GoButton but I get the illegality according to fragment error, when I put my destination URL in. An example of the format of the URL is:

    http://www.BBC.co.UK/radio? & Music = # {rank. PrimaryKey} & adf = 123

    Where I add in #{place. PrimaryKey} which is the Id of the line. I would like to have the new page open in a pop-up window, if possible.
    I don't know if this can be done in the bean to support or if my approach is right?

    Thank you very much


    Steve

    something like...

     
    

    Kind regards
    Neeraj

  • Does someone have a MagSafe 2 power adapter whose serial number is located inside the space where the two pins?

    Hi guys!

    I want to know if the power adapter of MagSafe2 that I just bought is genuine or counterfeit.

    I bought a MagSafe2 power adapter that has its serial number located inside the space where the two pins. Its model # is A1424. All the power MagSafe adapters I've seen always have serial number located under the round metal head big (I guess it's called head male or female?). Please see photo for reference.

    If any of you have or had any Apple Store, can you let me know?

    Thank you!

    My 85 Magsafe is exactly identical to your image.   It was 'inside the box' with a new MBP computer.

  • Cannot scroll inside the drop down Menus

    I just got a new laptop (Windows 7 Home Premium 64 bit) HP, installed Firefox 11 (now updated to 12) and discovered that when using the touchpad (Touchpad Synaptics v8.1. Driver provided by Synaptics, version 15.3.29.0 as of 10/13/2011), I can't scroll inside the drop down menus.

    To replicate, go to this link: http://sacramento.craigslist.org/sss/

    Click on the drop down menu to the search category. Use the touch pad to scroll through the list. Mine closed list and returns focus in the browser instead of scrolling of the list. It then scrolls the window of the browser instead. This works fine in IE. I tried the things:

    Safe mode
    Unchecking scroll smoothly
    Uncheck auto-scroll
    Uncheck the hardware acceleration

    And about all the various combinations of the above things. I also tried to restart Firefox every time I made a change. Nothing seems to solve this problem.

    Oddly enough, if there is a window of text within the page (as I write this), I can scroll than fine. Once I move my mouse out of the box, it scrolls the homepage very well. I don't think that it is a matter of the development following the mouse, there something to scrollable drop-down boxes that specifically seems.

    Also, I must point out that all the pages I have problems with work well in IE how they SHOULD work in Firefox.

    I had this exact problem, the same features of HP and the driver Synaptics. I went to synaptics site and downloaded their latest driver which is lower 15.3.29.0 for some reason any. There 15.2.20, I got this one for 64 bit since that's what I have. You must uninstall the 15.3.29.0 first because it is "newer". He now works properly in FF and IE and everything else. If for any reason any the last FF has a confrontation with the latest version of the synaptics driver and FF devs had to include a fix in the next patch.

  • HP 24-g080na all-in-one: disk lost inside the PC

    I put a dvd in the drive and it should not have been broken in properly because I heard him fall into the machine.

    I have no idea how to do to get it out again, (searched forums and found a similar topic in this section, but different model PC instructions so unnecessary!) or if it will do no harm, although it is there :/

    Thanks in advance for any help!

    Hi there @Rebecca89,

    Welcome to the Forums of HP Support!  I understand that a DVD came loose and dropped inside the DVD player or on your computer.  I'm happy to help you with this.

    You can try to remove the DVD drive and see if you can get the disc from the drive, if this is where he is, or open the computer to gain access to the drive if it is in your case.  Please see maintenance and Upgrade Guide that is in several languages, but has illustrations on how to open the case and remove the DVD drive.

    Please let me know if it works for you and if it does not solve your problem, please mark this message as a solution. Bravo would be appreciated as well.

  • Information inside the urlclassifier.sqlite

    Does anyone know if this file can be of any help, trying to find the browsing history? He was erased on my PC and it is the only file that has not been affected.

    Also, when the Firefox cache is deleted, can it be moved using a hard disk removal tool?

    The data are collected inside the places.sqlite file and because there is no function cancel as when editing a document, the data is permanently lost. Sorry to say this, but I think the only chance would be a backup or an earlier version.

  • My Tablet stolen inside the car to Boisar

    My bag stolen inside the car to Boisar (Thane, Maharashtra) and my Tablet has the inside of the bag, I have a complaint, but you know how our police service is, so please track my Tablet using the IMEI number and help me get it back. That will offer you the IMEI number please contact [personal information deleted]

    Thank you

    Hi @Salmansk

    I just sent you a private message. If you are unsure how to check your messages from the forum, this post has instructions.

  • Toshiba KIRA-102 with dust inside the screen

    Hello

    Big disapointement! It's my 4th Toshiba (first back in 1997... and still works!)
    My Satellite M30X with 10 years (ok) and my Tecra R840 with 3 years works 24 hours a day from the last August :-)

    The las one... a 102 Kira bought las November!
    Never had this problem: a task of dust about an inch or two the upper of the screen... but inside the screen!

    Now what?
    It's really annoying because it's the perfect... Toshiba advertising ultrabook!

    Paulo

    Hello

    To be honest, I never read on the problems of dust inside the display area.
    However, the mentioned absence looks like hardware related issue with material in question must be reported to the Toshiba authorized service provider in your country.

    In my opinion you should talk to the ASP guys on this problem of dust and probably they will replace the display panel

    On this page you will find all the Toshiba ASP available worldwide:
    http://www.Toshiba.EU/innovation/generic/ASP_SUPPORT/

Maybe you are looking for