HTMLDB_ITEM.POPUP_FROM_QUERY Populating Previous Text Field

I have manually created an updateable report from an SQL Query in which I manually index each editable field. I also include some hidden values which I also attempt to control the index values. The rows to be displayed on this page are the result of an adhoc search page (P30). Everything works fine except when I have more than one row returned and try to edit any row other than the first. When I do, the previous row's corresponding field is affected and the last row popup fields can never be changed. My listboxes work fine and appear to be indexed correctly. Am I missing something? Thanks in-advance.
A condensed version of my SQL:
select
NULL "CHECK$01", -- index 01? -- Checkbox for multiple updates is first index
"TRANSACTION_NUMBER",
"H_RID", -- index 02?
"DUTY", -- index 03?
"IC", -- index 04?
"IS_NEW", -- index 05?
"SUBMIT" -- index 06?
from(
select
'0' AS "TRANSACTION_NUMBER", -- to be replaced with dynamic value
HTMLDB_ITEM.HIDDEN(2,PE||FO) AS "H_RID", -- could hiddens be the problem?
HTMLDB_ITEM.SELECT_LIST_FROM_QUERY_XL(3,DUTY,'SELECT DUTY||'' - ''||NVL(TITLE,''None Selected'') a, DUTY b FROM PDM.DUTY ORDER BY b') AS "DUTY",
HTMLDB_ITEM.POPUP_FROM_QUERY(4,IC,'SELECT IC||'' - ''||NVL(TITLE,''None Selected'') a, IC b FROM PDM.INFRA_STRUCTURE ORDER BY b') AS "IC",
HTMLDB_ITEM.SELECT_LIST(5,'N','Yes;Y,No;N') AS "IS_NEW",
HTMLDB_ITEM.SELECT_LIST(6,'N','Yes;Y,No;N') AS "SUBMIT",
HTMLDB_ITEM.MD5_CHECKSUM(duty,ic)
from fd.pe
/* Where condition to address previous search page values to determine number of rows to return for editing */
where (:P30_DUTY = DUTY OR :P30_DUTY IS NULL)

Scott,
I had indicated the example was throwing errors associated with the HTMLDB_ITEM.POPUP_FROM_QUERY items. Although this is not the same error I am encountering in version 2.0 it does indicate that either there is an issue with my SQL or a bug with version 3. The SQL used to generate the reports is almost identical to the query I am running on my development site. The table and column names are different and I have provided a "Reader's Digest" version of my actual SQL.
I can eliminate the LOV errors on this site by replacing the POPUPs with LISTs, but that defeats the point. For efficiency of time, I need to implement POPUPs because the data behind them can potentially result in hundreds of records. Compound this with the number of fields per record which might also employ POPUPs and I could very quickly exceed memory limitations of HTMLDB.
Again, any assistance would be appreciated. Thanks.
Ed
PS. I have edited my SQL for the POPUPs. Apparently, the init LOV errors associated with them were generated by a simple concatenation of data fields within the inner select. I originally had:
HTMLDB_ITEM.POPUP_FROM_QUERY(4,IC,'SELECT IC||'' - ''||NVL(TITLE,''No Title Available'') as a, IC as b FROM BORG_CUBE.IC ORDER BY b') AS "IC",
by changing the above to read:
HTMLDB_ITEM.POPUP_FROM_QUERY(4,IC,'SELECT IC as a, IC as b FROM BORG_CUBE.IC ORDER BY b') AS "IC",
the init LOV errors went away. Now, there are no errors and no ability to replicate my error for you. Upgrading is not an option at this point, so I will begin recoding. :-(
Message was edited by: MovingTarget
MovingTarget

Similar Messages

  • Populating Multirecord text fields from Tlists value's combinations

    I have a UI wherein there are two T lists, one on the Left and other on the Right. The left one contains
    From values and the Right one contains To values. There's one Button which when Pressed should populate
    a Data Block which has multi record text fields just below the button with all the possible combinations of
    the T lists elements. The Text fields have the values From, To, Time, Unit. When populated From and Two will
    get the values from the combinations and the user will enter the values in other fields i.e. Time and Unit,
    Then the user can save the Records.
    e.g. If the Left T list contains Red, Blue and the Right T List contains Green, Black. Then on pressing
    the button below the T lists, the text fields From and Two of a data block displayed in the same window
    should get populated with all the possible combinations as:
    From || To || Unit || Time
    Red Green
    Red Black
    Blue Green
    Blue Black
    Now the user can enter the values for Unit as well as Time and when he does save the Records should be inserted
    for the Data Blocks DML Source that's some table.
    What I'm trying is:
    On pressing the Button i'm writing code that will have Two PL/SQL Tables(Index by binary_integer). One will have
    all the values of the left T List and the other with all the values of right T List.
    I do it as in the WHEN BUTTON PRESSED as:
    DECLARE
    TYPE varchar_table IS TABLE OF VARCHAR2(30) INDEX BY BINARY_INTEGER;
    from varchar_table;
    to varchar_table;
    v_count1 NUMBER;
    v_count2 NUMBER;
    v_count3 NUMBER;
    v_count4 NUMBER;
    BEGIN
    v_count1 := Get_List_Element_Count('CONTROL.FROM_TYPE');
         FOR i IN 1..v_count1 LOOP
              from(i) := Get_List_Element_Value('CONTROL.FROM_TYPE', i);
         END LOOP;
    v_count2 := Get_List_Element_Count('CONTROL.TO_TYPE');
         FOR i IN 1..v_count2 LOOP
              to(i) := Get_List_Element_Value('CONTROL.TO_TYPE', i);
         END LOOP;
    END;
    Now how will I populate the text fields with the values in the tables that i got with the piece of code above.
    Any help would be appreciated. Any other method other than the one i'm trying is also welcome. Please note that
    i'm not using any table to store the elements in the T Lists. The lists get values at runtime by
    user's selection.
    Thanks,
    Abhishek.

    Try and stay civil in your postings. The solotion should be to simply issue a GO_BLOCK, followed by a CREATE_RECORD followed by setting the approriate values :block.value = <value from list>

  • Populating a text field in a form based on selection from a list field?

    Hello,
    I'm using Acrobat 9 on a mac.
    In the list field users choose their hospital name. I then want the address associated with this hospital to populate a text field. Where do I enter the hospital addresses and the "script" (if hospital X then this address)? I've copied this list field and am using it in multiple places on the form by utilizing "global binding" and this is working well.
    Also, can the choices in a list field "drop down" or is the only option available a "click through?"
    Thanks in advance for your help!!

    hi, i've seen this problem before but can't remember what the solution was...
    but just by searching on this forum resulted in this link
    Re: Copy and Paste
    hope it helps

  • Having issues with populating a Text Field with data from 2 other fields

    I have 3 fields Tools_1a_pri, Tools_1a_pri_other, Tools_1a_pri_txt.
    Tools_1a_pri is a drop down combo with a predefined list. One of the options is "Other".  When "Other" is selected, the text field Tools_1a_pri_other becomes visible for users to enter the name of the other tool.
    The Tools_1a_pri_txt is a text field with a calculation that shows either text stating that no tool has been selected or the Tools_1a_pri & or Tools_1a_pri_other.
    When I select one of the predefined tools, everything works.  When I select other, it appears that nothing has changed.  It requires that I click on another field before it populates.  This is confusing to the user.
    Tools_1a_pri   Validate code
    this.getField("Tools_1a_pri_Other").display = event.value=="Other" ? display.visible : display.hidden;
    Tools_1a_pri_txt  Calculation code
    //if nothing is selected, do the following
    if (getField("Tools_1a_pri").value.length < 2) {
    event.target.textColor = color.red
    event.value = "No primary tool identified";
    }else if (getField("Tools_1a_pri").value != "Other") {
    //otherwise do this if other is selected
    event.target.textColor = color.black
    event.value = getField("Tools_1a_pri").value;
    }else if (getField("Tools_1a_pri").value = "Other") {
    //otherwise do this if other is not selected
    event.target.textColor = color.black
    event.value = getField("Tools_1a_pri").value + " - " + getField("Tools_1a_pri_Other").value;

    You made the classic mistake of using the assignment operator in an if-statement instead of the comparison operator. Change this line:
    } else if (getField("Tools_1a_pri").value = "Other") {
    To this:
    } else if (getField("Tools_1a_pri").value == "Other") {

  • Populating a text field depending on what is selected in list item field

    I have A form which contains a ROOM_REF field which is a list item, and a ROOM_DESC field which is a text item. (among other things).
    When the user selects from the ROOM_REF field (which is populated by a record group on startup),
    I want it to automatically populate the ROOM_DESC field with the coresponding (read only) data.
    Which kind of trigger do I need to use and with what code?
    Something like:
    SELECT ROOM_DESC FROM ROOM WHERE ROOM_REF = :SESSION.ROOM_REF;
    Thanks

    Did you try this code in WHEN-LIST-CHANGE trigger of list item.
    SELECT ROOM_DESC INTO :ROOM_DESC FROM ROOM WHERE ROOM_REF = :SESSION.ROOM_REF;-Ammad

  • Populating multiple text fields from a database table...

    I have a database table with several fields e.g. drawing_no, title, date_entered etc..I have a form that has the same fields. I want to be able to input a value into drawing_no field, and have it retrieve all the other values from the database - if they exist, or return blanks/nulls if it does not exit. I know how to do this for a single field, but not for retrieving multiple fields

    Hi ,
    You can create a before header page process and fetch all the fields from database, or you can take a look at in-built process Automated Row Fetch.
    For e.g. lets say u have field1, field2, field3, field4 and field5 based on col1, col2, col3, col4, col5 from table tab1
    Now create a page process of type PL-SQL and give a meaningful name to the process and accept the default as on Load Before header. In the "Enter PL/SQL Page Process" block enter a code similar to this one
    DECLARE
    BEGIN
    IF :drawing_no IS NOT NULL THEN
      SELECT col1, col2, col3, col4, col5 INTO :field1, :field2, :field3, :field4, :field5
      FROM tab1 WHERE drawing_no = :drawing_no ;
    END IF;
    EXCEPTION WHEN NO_DATA_FOUND THEN
               NULL;
    END;The above block will fetch the records into input fields every time u refresh the page.
    Hope this helps.
    Thanks,
    Manish

  • Reading CSV file, populating text fields, saving each as image to folder

    I need to generate a bunch of images by reading a CSV file of records, populating various text fields over an image and then saving each iteration as a new image in a folder. Is Illustrator the best solution to this problem? And if so can someone help me get started?

    In my opinion...
    While Illustrator is an awesome tool its scripting DOM is a little limited, you may have better luck using InDesign as it has a much broader DOM.
    If it is just simple text manipulations and you only require an image (not a document) Photoshop may work well for this as well.
    Both the InDesign and Photoshop scripting forums seem to have much more activity as well.
    For PhotoShop you can also use the awesome resources @: http://www.ps-scripts.com/bb/
    Regards,
    Herr Mueller

  • Populating text fields

    I have an application that loads variables from a text file.
    It loads them into several dynamic text fields by using the
    variable property. I tried populating other text fields with these
    values but doesnt seam to work.
    i tried this.
    username.text = username;
    I tried this because i need the value of the variable
    "username" to appear in the username text field.
    Why didnt this work. How can i correct this?
    Thanks

    it's a component? Why do you need that? Create the username
    simply with a dinamic text field and assign the data to it.
    I think your missing something. from what i remember and i'm
    not so good at this ( i must first see an exemple of something made
    by me) you must have a variable which contains the variable in
    which the data is loaded.
    I have to check out first some work i did to remember. If
    problem not solved i will come back in a few hours with the
    answer.

  • HELP!! How do I create hyperlink in a text field?

    Hi!
    I've been going through the message boards and I am not finding my answer.  I have created a form utilizing LiveCycle.  I have made the form so that it can be fillable via Reader Extended PDF.  I need to be able to put a link in a text field that the next user can just click on it, and it will take them to a document in SharePoint for review.  I've tried changing the text field to rich text in LiveCycle, but the steps to add the link in the PDF is too lengthly and not friendly.  Once I finally get it to put the link in, the end user cannot just click on it.  They have to take additional steps.  Someone on the boards mentioned something about putting a button next to the field that will convert the text of the link in the previous text field to a link, but I cannot find those instructions or understandable instructions.  The management wants it to be where you just click on the link.  How do I do this?  I am not a techie, so I need instructions in layman's terms.
    PLEASE HELP!
    Thank you!
    Maribeth

    I'm in the same boat as you, inasmuchas I taught myself LC. I've tried to replicate your issue. I'm trying to understand where the issue actually lies.
    First, I created a new document to test. I dragged the text field onto the document and stretched it to accomodate what I was going to type and entered: http://www.google.com/something
    This works as intended.
    Next I tried a link similar to yours in our own intranet: http://intranet/WebPages/support.aspx
    That also worked.
    Now, for what you're actually working with: a SharePoint document.
    I tried to paste a link to a document that I created on our Sharepoint site. The link failed! I noticed that the end of the link was truncated (something like 7 characters). So, I tried a shorter link. That worked!
    What else is happening when they click the link? Are they simply being asked to "check out" the document? Are you getting an error message like "an error has occured while opening the page"?
    Message was edited by: jasotastic81 (apparently "lnik" is not a word)

  • AS3: How to get height of a dynamically created text field

    I am importing text from an XML file and want the lines of text to display in separate text fields beneath each other. How can I set the y value of each succeeding text field so that there is some space (40 pixels or so) from the above field, regardless of the length of the text? Here is my current code. Any help would be greatly appreciated.
    var textArray:Array = new Array();
    for (var i:int; i <myXML.TOPIC[0].QUERY.length(); i++) {
    var textField:TextField = new TextField();
    textField.htmlText = myXML.TOPIC[0].QUERY[i].QUESTION;
    textField.x = 100;
    //below is my problem....I want the y value to be based on the height of all the previous text fields that have been created
    textField.y = 100+(40*i);
    textField.border = true;
    textField.width = 800;
    textField.textColor = 0x000000;
    textField.multiline = true;
    textField.wordWrap = true;
    textField.selectable = false;
    addChild(textField);
    textArray.push(textField);

    There's nothing wrong with the approach you took... retain it as is.  What I was suggesting is basically the same, just a slightly different angle that doesn't need the conditional....
    var currentY:Number = 100;
    for (var j:int = 0; j <myXML.TOPIC[0].QUERY.length(); j++) {
       textArray[j].y =  currentY;
        // text gets added somewhere in here
        currentY =  currentY+textArray[j].height+5;

  • Dynamically create Text Fields

    hi,
    i hav a form which contains 2 radio buttons.
    ...If v click one radio button, a text field should be displayed and should contain information returned by view object.
    ...If v click another radio button, the previous text field should not appear and new text firld should appear and should contain information returned by another view object...
    .....can anyone say how can this b done?....

    To make a textfield programmatically you can use something like this:
        public CoreOutputText createOutputText(String text) {
            CoreOutputText label = (CoreOutputText)FacesContext.
                    getCurrentInstance().getApplication().
                    createComponent(CoreOutputText.COMPONENT_TYPE);
            label.setValue(text);
            //System.out.println("label id = " +label.getId()); //TEMP
            return label;
        }I put that method in a UIComponentFactory class. To add the created OutputText to your PanelPage for instance you do:
    CoreOutputText output = UIComponentFactory.getInstance().createOutputText();
    getPanelPage().getChildren().add(output);Like this you add the output text to the the children of the panelpage.
    To remove the output again you can use getPanelPage().getChildren().remove(output);

  • Populating text fields with previous info in drop down

    Hello.
    I am using acrobat 7... creating a fillable PDF
    The completed project cues the user with a drop down under the text field of everything anyone has ever typed in the text field before.
    How do I stop the fillable form from populating previously used info?
    Thanks

    Thanks so much..
    I knew it was easy.. I just couldn't find it!

  • Query a view w/data entered into a text field populated by 2 table fields

    Hello, Looking for advise!!! I have a tabular canvas thats datablock uses a view to populate. In this canvas I have a text field that has been populated with first_name || ' ' || last_name in the database node of the property pallate column name. The text field is not in the table or view. I have created it in the data block and make it a database item. However, I would like to have the user push a search button to go into ENTER_QUERY mode then the user would enter the criteria to search on in this text field. The user would then push button to EXECUTE_QUERY. The result is I retrieve all records. I want any search criteria entered into this field to be used against the last_name field to retrieve any records equal to the search criteria entered, for example A%. Does anyone know if this is possible?

    Hi!
    You have to use PRE-QUERY trigger to compose the search criteria. Below I put an example of it. You have to have at least one item in the block wich is true database item (e.g. it has to exist in table or view on which your block is based). In the following example EMP_DESC is your non-database search item and EMP_ID is the database one.
    Declare
    Dummy VARCHAR2 (2000);
    begin
    if :EMP.EMP_DESC IS NOT NULL and :EMP.EMP_ID IS NULL
    then
    Dummy := '#IN (SELECT emp_id FROM Employees WHERE Upper (emp_first_name)||'' ''||Upper (emp_sec_name) LIKE Upper (''%'||:EMP.EMP_DESC||'%''))';
    Copy (Dummy, 'EMP.EMP_ID');
    end if;
    end;
    Thats it. Note the # sign in the first position of the Dummy assignment. This is required by forms to glue your search criteria and block's where clause. You may analize LAST_QUERY property of your block in order to understand how this work. Remember also to set the QUERY_LENGTH property of the EMP_DESC item to the value that could contain the whole Dummy string (otherwise it will give you an error and cut the mar the query).
    Hope this helps.
    Sergey.
    P.S. And set your EMP_DESC database item property to NO.

  • How to blur a text field populated by a date picker

    Hello,
    I have a text field, it is displayed as a date picker.
    The date picker can populate the said text field as normal.
    However, I have a onBlur="javascript:func" for this text field.
    When the date picker has populated or changed the
    text field, the JavaScript function is not called.
    How can I call the JavaScript function after date picker window closes?
    Or, is it possible to modify
    wwv_flow_utilities.SHOW_AS_POPUP_CALENDAR procedure?
    I do not want to submit the page.
    My JavaScript function uses Ajax to save the text in the text field.
    Thanks in advance!
    Message was edited by:
    mzshen

    vdesign is correct. If you look at the javascript for the date picker it is specifically looking for onChange so that if one exists it will call it. I believe this is the only attribute that can be added by default to a date picker....(i found this out cause I had to build a custom date picker that let the user pick months, but had to look and function just like the delivered one)

  • Populating Text Field from Dropdown in Repeating Subforms

    Hi there,
    I'm trying to create a dropdown in a repeating subform that populates a text field in the same subform depending on the option selected.
    I used the functionality described here to acheive the text field population in the first row, but I have trouble when I add additional instances of my subform. In subsequent instances, when I select an option from the dropdown, it changes the text in my first textbox and does not populate anything in the repeated textbox.
    I'm not sure how to get this to work for each added instance and/or how to keep each instance separate from one another.
    Thanks in advance for your help!

    Can you repost the question - some funny formatting issue

Maybe you are looking for