create DDL from the values of TEXT on the page

I have a form with two selection lists. The first select list (P3_OWNER_GROUP) works very well and has the onChange application to extract the other two columns associated with the selected list item and store these values in two fields of hidden text. (P3_L_TABLE and P3_L_TAB_COLUMN) through process on REQUEST. These two columns of hidden text values must be used to drive the second selection list (P3_SERVER_HOST), because they contain the full qualified table name and column name to select LOV. Here is the list of the values object code.

DECLARE
l_string VARCHAR2 (1000);

BEGIN
IF: P3_OWNER_GROUP IS NOT NULL THEN
BEGIN
l_string: = "select distinct" | : P3_L_TAB_COLUMN | ' d, ' || : P3_L_TAB_COLUMN | ' r of | : P3_L_TABLE | "order by 1';
EXECUTE IMMEDIATE l_string;
END;
END IF;
END;


Error: ORA-06550: line 1, column 13: PLS-00103: encountered the symbol 'COLLECT' at the expected in the following way: =. ( @ % ; ORA-06550: line 1, column 82: PLS-00103: encountered the symbol ";" when expecting one of the following values: (, % to execute the query list of values: ' ".)

Any help is greatly appreciated.

The selection list call it P3_OWNER_GROUP or P3_OWNING_GROUP? If you are referring to a nonexistent element, it will always be null.

Anyway, there is no real need for anon - block the nested, and the condition should focus specifically on the elements of the page that you are wanting to use in the query. I think it should be:

DECLARE
  l_string VARCHAR2(1000);
BEGIN
  IF :P3_L_TAB_COLUMN IS NOT NULL AND :P3_L_TABLE IS NOT NULL THEN
    l_string := 'select distinct ' || :P3_L_TAB_COLUMN || ' d, ' || :P3_L_TAB_COLUMN || ' r from ' || :P3_L_TABLE || ' order by 1';
  ELSE
    l_string := 'select ''- Select -'' d, null r from dual';
  END IF;
  RETURN l_string;
END;

John

Tags: Database

Similar Questions

  • problem creating oscustomisationspec from the command line

    Hello

    I have a problem when you create or modify a command line oscustomisationspec

    If I change the administrator password or domain password I have a problem when you use the customisationspec

    error is cannot decrypt the password

    the public key in the specification does not match the public key of vcenter...

    When I create this oscustomisationspec of my xp machine I have no problem

    When I create my Management Server I have the problem

    and when I create it from the vcenter itself I have the question too

    I don't understand why I'm using the right button of my computer and not a server

    If I create the customspec of the client vsphere vcenter or on the management server, it works well

    Another thing

    If I export customization of my computer the plain text for the password value is false

    If I export the customization of the server the value of plaintexst is true

    my machine is xp

    the waiters are win2003 and win2008

    can anyone help?

    Hello, DanielSoares-

    This could be linked to the bug referenced in the thread to the http://communities.vmware.com/thread/297748.  Here, broedi and vitalibaruh done by are the property of plain text for passwords in the spec is set to $false instead of $true when.  They discuss this issue when using New-OSCustomizationSpec to clone an OSCustomizationSpec, but I got the same behavior you describe when you create a new persistent by using New-OSCustomizationSpecOSCustomizationSpec.

    In the thread (the post to http://communities.vmware.com/thread/297748?start=18), vitalibaruh (from the team of PowerCLI) mentions that he's filed a bug for this behavior.

    So for now, the solution seems to be to create the OSCustomzationSpec via the vSphere client and, if you want to work with a copy of the spec (to add/modify credentials, for example), use the API to clone the spec (via the DuplicateCustomizationSpec() method) and then use Set-OSCustomizationSpec to make changes to the clone.  I've posted an excerpt on the use of this method twice in this same thread.

    Is not ideal, but that market.  I hope this helps.

  • How to copy and paste text from the page of the book one photo to another.

    Hello, I downloaded this software 2 days ago, and I had so much fun with it. pls I need help on how to copy and paste text from the page of the book one photo to another. Second, how to copy my photo book completed pages project to another laptop computer for printing. Thank you

    Wow! I solved the first problem, I clicked on 'ctrl c' to copy and "ctrl v" to paste. yipppppeee! now am loving this software d most just need help with the second question now

  • Creating PDF from the software Macromedia in MS Outlook 365 convert without images.

    Case 0187809571. Creating PDF from the Macromedia in MS Outlook 365 software works, but the images do not convert. DC Adobe has been bought and installed on 6 May and MS Office 365 has been bought and installed on May 6. The two programs are the latest versions.

    Create a PDF from an email that way (above) results in:

    I tried 2 Chat sessions without resolution. If I "print" to PDF, it's ok:

    Help, please. This happens to all emails with images.

    Hi bethm19302338,

    Start Outlook, click the Adobe PDF tab, click conversion settings.

    Once you see the conversion settings window, check if this option is checked "block download of external content. Try to uncheck and restart outlook and conversion, and then try again.

    Kind regards

    Tariq Dar.

  • When I return from the page of google search for a link then button does not return return

    When I return from the page of google search for a link, then button does not return back. Instead, the same page refills. I need to go back click back button twice or even more. How to fix? I cheked it it another browser and there is no such behavior. It seems completele Firefox problem.

    the problem was resolved after remooving extenshion «user agent overrider»

  • HP envy 5530 Wireless: print only on the left excluded from the page. The right part shows a gray rectangle. Preview looks right

    My new printer works, but although I've marked the parameters for the letter and print preview appears correct, that the printed pages are coming on only the left excluded from the page.  On the right 1/3, there is a gray rectangle.  I really need to fix.

    Thanks again for your response.  It turned out that the printer was not to blame.  I was using the word 2016 and he had a setting of markup that was running.  When I turned is disabled, gray Panel went out.  Unfortunately, he seems to be the default setting and returned.  But until I figure out how to fix I just check the section of markup on the Ribbon and make sure it is off.

  • create table from the XML file at several levels

    Hello

    I'm working on the provision of an app to display xml data, which are currently using data from the settings file where the data was stored in a table.

    CONT =]
    [{txt: 'Perfume'} //main menu]

    [[{txt: 'Top Note', framework: 'topNote'}, {txt: 'Heart notes', frame: "heartNote"}, {txt: frame, 'Note of Base': 'gaps'}] / / submenu]

    ,[
    {txt: 'Packaging', field: 'packaging'} / / main menu

    ]

    ]

    I created an xml file and am able to recover data and impossible to find the same.

    Here's the xml file

    < Products >
    < produces txt = setting "Perfume" = "" > "".
    < = frame 'Top Note' = "topNote" txt file name > < / name of the file >
    < = txt file name ' heart notes"frame ="heartNote"> < / name of the file >
    < file name txt = "Core score" frame = 'gaps' > < / name of the file >
    < / product >
    < produces txt = framework of 'Packaging' = 'packaging' > < / product >
    < produces txt = framework "3D Animation" = "tvAd" video = "true" flvName = "video.flv" w = "547" h = "309" > < / product >
    < product txt framework "advertising Lla' = 'the package' = >
    < name of the txt-file = "Print Ad Creative Pack" frame = "printCp" > < / name of the file >
    < / product >
    < / product >

    AS A CODE

    ---------------------------------------

    (GlobalVarContainer.myXML is the place where is stored the xml file)

    var node:XMLNode = GlobalVarContainer.myXML.firstChild;
    var navItm:int = int (node.childNodes.length);
    for (i = 0; i < wheel; i ++) {}

    var temp_array:Array = new Array();
    var subnavCount:int = int (node.childNodes [i].childNodes.length);     subnav
    var obj:Object = new Object();
    obj.txt = node.childNodes [i] .attributes ['txt ""]
    obj. Frame = node.childNodes [i] .attributes ["frame" "]
    trace (node.childNodes [i]. Attributes ['txt'])

    for (var j: int = 0; j < subnavCount; j ++)
    {
    trace (node.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [j]. Attributes ['txt'])
    obj.subtxt = node.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [j]. Attributes ['txt'];
    obj. Subframe = node.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [j]. Attributes ['frame'];
    temp_array.push (obj);
    }
    GlobalVarContainer.my_array.push (temp_array);

    }

    If I add - trace (GlobalVarContainer.my_array); -to code the outout is

    [object Object], [object Object], [object Object]
    [object Object], [object Object], [object Object],.
    [object Object], [object Object], [object Object],.
    [object Object], [object Object], [object Object], [object Object]

    but trace (.txt [i] GlobalVarContainer.my_array + "array"); or trace (GlobalVarContainer.my_array [i] [0] .txt + "array"); no results.

    need advice to move forward from here.

    Thank you

    AYUSH

    What I meant is that if you load the XML e4x, you have to analyze in a table to use it. You can retrieve the syntax of e4x XMLList and use it directly in your code. You can treat the XMLList almost as you treat any array using a for each loop for example.

    Take the code below as an example and adapt it to your needs:

    var mainMenu:XMLList = this.testXML.menu;

    for each {var menu: XML (in mainMenu)}

    trace ("Menu:" + menu.@txt);

    You can use your logic to create menu main point here

    var mynavItem:Navitem = new Navitem (0, spatie * i, GlobalVarContainer.my_array [i] [0], [i, 0], false, true);

    this.holder.addChild (mynavItem); ABLE TO VIEW THE MAIN MENU

    var items: XMLList = menu.children ();

    If (items.length () > 0) {}

    for each {var point: XML (in the points)}

    trace ("point:" + item.@txt);

    Logic of creation of subitem here

    var mySubnavItem:Navitem = new Navitem (dash, spatie * (i + 1 + j), GlobalVarContainer.my_array [i] [2], [i, j], true);

    this.holder.addChild (mySubnavItem);        DISPLAYS ONLY THE LAST ENTRY IN THE SUBMENU

    }

    }

    }

  • Create signals from the software

    I am trying exteranlly trigger a camera by using its ready digital signal reading to invoke the next trigger.

    The code below triggers a pulse counter, whenever there is a signal of falling on PFI0 edge:

    camShutterOutputTask.COChannels.CreatePulseChannelTime ("Dev1/ctr0", "",)
    COPulseTimeUnits.Seconds, COPulseIdleState.Low,
    0,
    0.000001,
    (((double) exposure_time) / 1e6);

    camShutterOutputTask.Triggers.StartTrigger.ConfigureDigitalEdgeTrigger ("/ PFI0/Dev1", DigitalEdgeStartTriggerEdge.Falling);
    camShutterOutputTask.Triggers.StartTrigger.Retriggerable = true;

    Right now it works very well by linking PFI0 to a USB-6002 output to test. Every time I press a button to send a signal of USB-6002, I see a shock occurs.

    However, when connecting to a physical camera, PFI0 will be connected to the display of the camera. I need a way to manually launch the first impulse on the software side move the following loop. Is it possible to do?

    Hi Joehsiao,

    How long do you expect to be taken between the time the camera receives the initial impetus until when the camera on the impulse arrives on PFI0? If it's a pretty long time, then you could just reconfigure the task for counter 0 after the initial pulse. For example, you set up initially to generate a pulse based on a one-time event (application startup, event button user, time, etc) and then once it generates this initial impetus, clear this task (or change), so that the meter to exit task is then configured to trigger the signal coming from the PFI 0.

    Kind regards

    Kyle S.
    Technical sales engineer
    National Instruments
    http://www.NI.com/support

  • How to get values page, component and menu of Peoplesoft from the page?

    Hi all

    We used Peopletools 8,4 x previously where it is used to make a comment on the page of peoplesoft something of this form:

    <!--IE/6.0/WINNT; ToolsRel = 8.44.17; Page = INV_ITEMS_DEFIN1; Component = ITEMS_INQUIRY; Menu = DEFINE_ITEMS; User = VP1; DB = PSFT844/ORACLE; AppServ = / / INSIGHTVMPS2:9000; ->

    We had set some debug and trace options in the configuration of the web profile, as shown in the picture as an attachment to get this comment. We have improved at 8.54, and we don't get these values in the commentary. Is there anyway that we can retrieve these values? Any help in this area would be extremely useful.

    Psoft.png

    So when you press Ctrl + J or Ctrl + J twice on the page, nothing happens?

    You use IE9?

    Try Ctrl + Shift + J

  • Create PDF directly from the Pages panel

    Hello world

    Can someone help me find a free script that allows you to create pdf pages unique (or a range of selected pages) by using page thumbnails in the Pages panel and choosing the function with the right button of the mouse.

    I know there are and it is a free script. I worked with her in IDCS5 but I lost its traces on a computer that have crashed and I can't find using Google.

    Greetins and thank you in advance,

    Maria

    -What are you talking about?

    http://dtputils.com/products/view/2

  • How to pass a value of text to another page?

    If you have a text input and a button to the page 1 how to make that value available on page 2 after clicking on the button. I created a flow of the page by clicking on the button brings me to page 2 but not sure where you get the value of input text that was on page 1.

    Thank you.

    As you can see in the code I added an inputText and a CommandButton on page1.
    I use setActionListener to pass the value of page1 page2 declaratively.
    In faces config, I created a stream of page 1 to page 2. The value 'of result' as the action attribute of the commandButton control.
    I created with an outputText page2.
    Everything you enter in page1 should appear in page 2 when you click on the CommandButton.
    Yet, you can't make it out, let me know your email id, I will send you the sample application.

  • iCloud accessed via my Mac doesn't show the documents created and updated the pages on my iPad, even if the settings are correct all around.

    When I open the iCloud drive from my Mac (running Yosemite) documents created and more recently in the Pages on my iPad mini2 is no longer appear. I have re-checked the iCloud settings on the devices and the two seem to properly put in place.  There is no network problem.

    Try the settings/iCloud and remove the synchronization. Wait a few minutes and then resynchronize.

    Try to go into System Preferences/iCloud and stop synchronization. Wait a few minutes, then recheck the timing.

    Have you tried the signature to iCloud and then reconnect?

  • JavaScript from the page as an argument element

    It is a simple javascript function to remove the space on the P6_JOB_NAME text field

    I want to move the agenda of the APEX page as an argument so that I can reuse this same javascript on several elements of the page function.

    I tried several different ways, as below. But none of them works. No idea where I am going wrong?

    1 work

    function removeSpace() {}

    job_name var = document.getElementById ('P6_JOB_NAME');

    var input_str = job_name.value;

    job_name. Value = input_str.replace (/ \s + / g, ");

    }

    in the text field...

    onChange ='Javascript:removeSpace();'

    2. does not work

    function removeSpace (id) {}

    job_name var = document.getElementById (id);

    var input_str = job_name.value;

    job_name. Value = input_str.replace (/ \s + / g, ");

    }

    in the text field...

    None of these works

    onChange = 'Javascript:removeSpace (this)';

    onChange = 'Javascript:removeSpace('P6_JOB_NAME')';

    Hi JonDaegu-Oracle

    Try using the following code, I didn't test, but I think it will work

    function removeSpace (id) {}

    var input_str = id.value;

    ID. Value = input_str.replace (/ \s + / g, ");

    }

    Concerning

    Salim

  • How to send data from the Page with a form to fill out?

    How can I automatically include the page title or any text in my Web page when my client click on the Submit button in a form to fill out?

    This may seem obvious, but if you want to receive data from a form, and then place it in the form. A hidden form field with the title page and the text of your Web page will send these data on the form submission.

    best,

    Shocker

  • Remove the button from the Page

    I have a form that is mainly used in Adobe Reader and designed in Live Cycle Designer ES 8.2.  I created a button "Insert Page" that allows users to reproduce or insert additional pages if necessary.  However, I would like to have a button that allows the user to also delete the page if it is not necessary.  The the button script that I use to insert the page is as follows:

    Form1. Page5.button1 [0]: click - (JavaScript, both)

    Form1. Page5.instanceManager.addInstance)

    I thought maybe I could just create another button and instead of "addInstance", I just have "removeInstance" but that does not work so I was wondering how this can be done?

    Any help appreciated.

    Hello

    The addInstance has a parameter 'true' or '1', for example:

    form1.Page5.instanceManager.addInstance(1);
    

    This will add another instance of Page5.

    Now when it comes to removeInstance, the parameter you need is the instance number you want to delete, based on the system of numbering from scratch. For example if there are three instances of page 5, these are numbered Page5 [0], page 5 [1] and on Page5 [2]. This script deletes so everything initially:

    form1.Page5.instanceManager.removeInstance(0);
    

    If there is a button on the Page 5 to delete the page, you can pass this.parent.index as a parameter.

    form1.Page5.instanceManager.removeInstance(this.parent.index);
    

    However keep in mind that if the button is in subforms you will need several 'parent' to get on Page5: this.parent.parent.parent.index.

    Hope that helps,

    Niall

Maybe you are looking for

  • Problem of overheating on Qosmio X 500-11 M

    + * Hi there, * +. + * I had a huge problem with Toshiba Qosmio X 500 11m.* +.+ * I went to 8 GB of ram, I added disk SSD Agility 128gb.* +.+ * Freshly installed Windows 8.* +.+ * Portable all DUST FREE, I mean that there is no dust at all, motherboa

  • W540 - brightness of the display and audio output problems

    Hi all I've got 2 separate but really annoying problems with my W540 20BH: -display brightness keys does not: upon awakening from Hibernation, sometimer (really, randomly!) mode the brightness screen (Fn + F5/F6) keys do not work... If the brightness

  • list by program dependencies recursively to a VI (subVIs)

    In a large application that I'm developing, I use VI server calls to load the screws in memory. However, I recently met a problem that is causing a bit of a headache. I was able to load and run, using the VI server, a series of screws (which are a bi

  • When my battery is fully charged, what button I press to turn off the battery and use the DC

    When my battery is fully charged, what button I press to turn off the battery and use the DC. I need to know what to do to avoid the impoverishment of my battery. OR is it save to leave the computer on, even when the battery is fully charged

  • update essential live window will not stop

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: windows update of windows live essential never end and I can't find a way to stop it. You have problems with programs Error messages Rece