Collections and APEX_ITEM. TEXT()

I am currently using three collections on a form using APEX_ITEM. SELECT_LIST_FROM_LOV(). All work fine. I add another collection to your need to use APEX_ITEM. Text() and it has been so long setting I don't remember why this is happening. I think that's because of the APEX_ITEM. Text() function.  Whatever is underneath. Thanks in advance!

Note for Jari if you're here, it's instead of the tabular form, we have been working on if I put two more on the form...

Tables

DOC_ASSOC_ITEMNO_REF

ASSOC_ITEMNO_REF_ID (PK)

ITEM_ID (FK)

DOC_INFO_ID (FK)

DOCNO_ID (FK)

ASSOC_ITEMNO (VARCHAR2 (30))

SH_ITEM

ITEM_ID

ITEMNO

ITEM_DESC

ITEM_GROUP

Form region

SELECT  APEX_ITEM.TEXT(24,c024,null,10,null,null) ASSOC_ITEMNO
FROM APEX_COLLECTIONS 
WHERE COLLECTION_NAME = 'ASSOC_ITEMNO_COLL' ORDER BY c024

Create the Dataset

apex_collection.create_or_truncate_collection
  (p_collection_name => 'ASSOC_ITEMNO_COLL');
DECLARE
  v_ai       NUMBER;
  var21      NUMBER;
  var22      NUMBER;  
  var23      NUMBER;
  var24      VARCHAR2(4000);
  rw_ct      INTEGER;
cursor c_prepop is
select assoc_itemno_ref_id, item_id, doc_info_id, docno_id,  assoc_itemno 
from DOC_ASSOC_ITEMNO_REF
where DOCNO_ID = :P3_DOCNO_ID
ORDER BY 1;
  i      NUMBER;
  cntr   NUMBER := 4000;
BEGIN
  select COUNT(*) into rw_ct from DOC_ASSOC_ITEMNO_REF
where DOCNO_ID = :P3_DOCNO_ID     
      ORDER BY 1;
  cntr := cntr - rw_ct;
  OPEN c_prepop;
    LOOP
      FETCH c_prepop into v_ai, var21, var22, var23, var24;
       EXIT WHEN c_prepop%NOTFOUND;
       APEX_COLLECTION.ADD_MEMBER(
        p_collection_name => 'ASSOC_ITEMNO_COLL',
        p_c020 => v_ai, --assoc_item_ref_id
        p_c021 => var21, --item_id
        p_c022 => var22, --doc_info_id
        p_c023 => var23, --docno_id
        p_c024 => var24  --assoc_itemno
          );
    END LOOP;
  CLOSE c_prepop;
for i in 1..cntr loop
    APEX_COLLECTION.ADD_MEMBER(
        p_collection_name => 'ASSOC_ITEMNO_COLL',
        p_c020 => 0, 
        p_c021 => 0,
        p_c022 => :P3_DOC_INFO_ID, 
        p_c023 => :P3_DOCNO_ID,
        p_c024 => null
        );
  end loop;
END;

Enter data

declare
p pls_integer :=0;
begin
for p1 in(
 select seq_id from apex_collections
 where collection_name = 'ASSOC_ITEMNO_COLL'
 order by seq_id)loop
 p:=p+1;
apex_collection.update_member_attribute(p_collection_name=>'ASSOC_ITEMNO_COLL',  p_seq=>p1.seq_id,p_attr_number=>24,p_attr_value=>wwv_flow.g_f24(p));
end loop;
end;

Write to the Collection

declare
begin
  for y in (select TO_NUMBER(c020) x_key20, TO_NUMBER(c021) x_21, TO_NUMBER(c022) x_22, TO_NUMBER(c023) x_23, (c024) x_24
   FROM APEX_COLLECTIONS
  WHERE COLLECTION_NAME = 'ASSOC_ITEMNO_COLL' AND c024 IS NOT NULL ORDER BY x_key20) loop
  IF y.x_key20 = 0  and y.x_24 > 0 THEN
       insert into DOC_ASSOC_ITEMNO_REF(assoc_itemno_ref_id, doc_info_id, docno_id, item_id, assoc_itemno)
          values(DOC_ASSOC_ITEMNO_REF_SEQ.nextval, y.x_21, y.x_22, y.x_23, y.x_23);
    elsif y.x_key20 > 0  then
update DOC_ASSOC_ITEMNO_REF
set
item_id = y.x_21,
doc_info_id = y.x_22,
docno_id = y.x_23,
assoc_itemno = y.x_24

 where assoc_itemno_ref_id = y.x_key20;
   else
      DBMS_OUTPUT.PUT_LINE ('There’s an error.');

    end if;
  end loop;
end;

Result

ITEMS PARTNERS JavaScript:popupURL('f?p=4000:374:1749835074821218:::P374_ID,FB_FLOW_ID,FB_FLOW_PAGE_ID:74545216228738206,505,3');
< input type = "text" name = "f24" size = "20" maxlength = "10".
value = "" / > "
< input type = "text" name = "f24" size = "20" maxlength = "10".
value = "" / > "
< input type = "text" name = "f24" size = "20" maxlength = "10".

value = "" / > "< input type = "text" name = "f24" size = "20" maxlength = "10".
value = "" / > "< input type = "text" name = "f24" size = "20" maxlength = "10".
value = "" / > "< input type = "text" name = "f24" size = "20" maxlength = "10".
value = "" / > "< input type = "text" name = "f24" size = "20" maxlength = "10".
value = "" / > "< input type = "text" name = "f24".
size = "20" maxlength = "10" value = "" / > "< input type = "text" name = "f24".
size = "20" maxlength = "10" value = "" / > "< input type = "text" name = "f24".
size = "20" maxlength = "10" value = "" / > "< input type = "text" name = "f24".
size = "20" maxlength = "10" value = "" / > "< input type = "text" name = "f24".
size = "20" maxlength = "10" value = "" / > "< input type = "text" name = "f24".
size = "20" maxlength = "10" value = "" / > "< input type = "text" name = "f24" size = "20" maxlength = "10".
value = "" / > "< input type = "text" name = "f24" size = "20" maxlength = "10".
value = "" / > "
1 - 15Next
>

Hello

You need to change your report to «Display As column report Standard =» columns

Thank you

Erick

Tags: Database

Similar Questions

  • Include the anchor and image with apex_item.text

    I wonder if it is possible to include an anchor and an image with the apex_item.text function. I tried to use the p_attributes parameter in the function, adding an anchor tag and tag the image. When I discovered the page, I can see the image and the link goes to the page I want, however, to the right of the image I see not what turns out to be my p_item_id parameter. In my case it appear on the page as a id = "f1_1" / > just to the right of the image.
    SELECT apex_item.text(1, ID, 15, 15,
               '<a href="f?p=&APP_ID.:23:&SESSION.::::P23_ID:#ID#" >
                 <img src="#IMAGE_PREFIX#e2.gif" border="0" ></a>',
               'f1_' || ROWNUM, null) ID,
    In addition, the #ID # point the value of the href above URL (f? p = & APP_ID.:23: & SESSION.: P23_ID: #ID #) does not pass the value of the element, rather it passes #ID # as value, any thoughts on how to pass the value of the line in a table would be greatly appreciated.

    Our version of the ApEx is 3.2.1.00.10

    Concerning
    Mark

    Published by: bohnensm on July 12, 2010 12:04

    Published by: bohnensm on July 12, 2010 12:05

    Mark,

    apex_item. Text renders a text field, you try to include your own HTML (image + anchor) code as an attribute of this text field. This will generate incorrect HTML code. Instead you can concatenate the string generated for the text with your HTML code field, i.e. move it out of the text field:

    SELECT Apex_item.text (1, ID, 15, 15, null, 'f1_' |) ROWNUM, null).
    '',
    « f1_ » || ROWNUM ID, null)...

    Kind regards
    Marc

  • How to 'catch' the data in a field of apex_item.text

    Hello

    How can I catch the data, I write in a field of apex_item.text and copy it to another table.

    Example:

    Source table

    Create table Hund(
    PRI_KEY number,
    Name varchar2(30)
    );
    
    

    Classic report in the Apex:

    Select
    APEX_ITEM.DISPLAY_AND_SAVE(1, PRI_KEY),
    APEX_ITEM.DISPLAY_AND_SAVE(2,Name),
    APEX_ITEM.TEXT(3,weight) as weight
    From Hund;
    
    

    The weight of the column do not exist in the table Hund, but is it possible to catch what is written in the Apex Page (and put in another table)?

    EDIT: Maybe a resolution with a Collection of APEX?

    THX

    René

    René

    F01 being a checkbox only lines checked are in the table.

    This means that when the box is checked for lines 1 and 3. Only the rows are in the table in the f01.

    Then, when for the second race hollow the loop index is 2. You treat rank 3 for the f01 table but the 2nd rank of the other tables.

    You have to match the table value f03 with f01 table values to find the line number for the f20 table.

    for i in 1..apex_application.g_f03.count
    loop
       for k in 1..apex_application.g_f01.count
       loop
          if apex_application.g_f03(i) = apex_application.g_f01(k)
          then
             UPDATE PRM_CHK_BSTBS_ABGL_EDIT
             SET KOMMENTAR=APEX_APPLICATION.G_F20(i)
             WHERE NUMMER_EINHEITLICH=to_number(APEX_APPLICATION.G_F03(i));
           end  if;
       end loop;
    end loop;
    

    This will update the checked lines.

    If you want to update all the lines to leave out the inner loop and instruction.

    I don't see what you posted I have, this is the case, but it is not a good idea to mix apex_item and columns be updated regular.

    Nicolette

  • E-mail address embedded in Apex_Item.Text

    I use Apex 4.1 and a pl/sql generated region using htp.table and apex_item to create the elements on the page. I create an apex_item.text element that contains information, including an email address.

    Text contains information that is similar to "NAME: user name address: useraddress PHONE: 11111111 EMAIL: . [email protected] "" "

    We would like to , as the email address to be able to be clicked by the user and open outlook so that the user can send an email to the address of the link. The information contained in the text element is generated by a pl/sql cursor and I tried to integrate the < a href = "mailto:[email protected]" /a > in the slider, but that did not work and just showed the tag in the text box. ' "

    Any help/advice would be appreciated!

    Hello 77Vetter,

    Have you thought about going pure htp.p?

    Here's a simplified version region PLSQL of one of our applications that work e-mail links

    begin
    for x in (
    select
          w.cps,
          w.cpsemail,
          w.rsm,
          w.rsmemail,
      from #OWNER#.cp_projectsummary w
    where w.schemaname = :P10_SCHEMANAME
      and w.workorderkey = :P10_WORKORDERKEY
      and w.workordercustomerkey = :P10_CUSTOMER
    )
    loop
      htp.p('
    CPS: '||x.cps||' '||x.cpsemail||'
    RSM: '||x.rsm||' '||x.rsmemail||'
    ' ); end loop; end;

    Kind regards

    Brad

  • BRIDGE: How to export the names of files in a collection in a text file or a spreadsheet?

    In order to save the photos for copyright, I need a list of text, pictures to be registered. All photos are in a bridge collection. It may be a Word or Excel document, but any list of text will do.

    Thank you

    Mike

    Hi Chicagonature,

    Regular Collections are just text files and are located at the following locations:-

    Mac: Users / [user] / Library/Preferences/Adobe/Bridge CC/Collections

    Windows 7: users / [user] / AppData/Roaming/Adobe/Bridge CC/Collections

    Lets us know if it helps.

    Concerning

    Sarika

  • the SQL for apex 4.2 with 'apex_item.text' region report renders incorrectly

    In the APEX 4.2 page, I created region "report data.

    Type = "SQl query".

    'User interface'-> 'Template '=' area of reports.

    "Area Source 'is' select apex_item.text (1, '111') as double c1".
    The select query is actually much more complex, but generally simplified it is such, that it uses the function "select apex_item.text" construction HTML textfield.

    If I run in query Sql Developer
    select apex_item.text(1, '111') as c1 from dual;
    Then it results in:
    <input type="text" name="f01" size="20" maxlength="2000" value="111"  />
    But in APEX 4.2 the report is rendered thus:
    <td  headers="c1">&lt ;input type=&quot ;text&quot ; name=&quot;f01&quot; size=&quot;20&quot; maxlength=&quot;2000&quot; value=&quot;111&quot;  /&gt ;</td>
    ("for this forum poster correctly I had to put extra spaces between ' ' & gt ' and ';' and so on)

    And APEX 4.2 shows ugly html inside the cell of report/slot for me, showing characters/symbols ">". The reason is that APEX source HTML of the page has no symbol ">" but has "' & gt; '."

    The APEX 3 I have a similar query works fine, without such an anomaly.

    What attribute should I change in APEX 4.2 region to display the result of my query as needed?

    I need this 'apex_item.text' function, I can't remove it.

    Published by: CharlesRoos on 13.02.2013 15:28

    Published by: CharlesRoos on 13.02.2013 15:29

    Published by: CharlesRoos on 13.02.2013 15:29

    CharlesRoos wrote:
    In the APEX 4.2 page, I created region "report data.

    Type = "SQl query".

    ' UI '-->' model '=' area of reports.

    "Area Source 'is' select apex_item.text (1, '111') as double c1".
    The select query is actually much more complex, but generally simplified it is such, that it uses the function "select apex_item.text" construction HTML textfield.

    If I run in query Sql Developer

    select apex_item.text(1, '111') as c1 from dual;
    

    Then it results in:

    
    

    But in APEX 4.2 the report is rendered thus:

    < ;input type=" ;text" ; name="f01" size="20" maxlength="2000" value="111"  /> ;
    

    ("for this forum poster correctly I had to put extra spaces between ' & gt' and ';' and so on)

    And APEX 4.2 shows ugly html inside the cell of report/slot for me, showing characters/symbols ">". The reason is that APEX source HTML of the page has no symbol ' > ' but '& gt;'.

    The APEX 3 I have a similar query works fine, without such an anomaly.

    What attribute should I change in APEX 4.2 region to display the result of my query as needed?

    Make sure the column attribute display as for column C1 is Standard report column.

  • Apex_item.text dynamic item add or subtract value

    I have a report that creates dynamic items using the package apex_item, like this:
    select id
    ,      apex_item.hidden(1,id) 
    ,      label
    ,          decode(typ_id,
                        1, apex_item.text(p_idx=> 2, p_value=> null, p_attributes=> 'class="number"') || 'num', /*this should be a numberic field, isn't working jet*/
                        2, apex_item.text(2),
                        3, apex_item.select_list_from_query(p_idx=> 2, p_query=> 'select label, id from list where prop_id = ' || id, p_show_null=> 'NO'),
                        4, apex_item.date_popup(2, 0),
                        5, apex_item.text(2,'0') || '<a href="f?p=&APP_ID.:1:&SESSION."><img src="#WORKSPACE_IMAGES#add.gif"/></a> <a href="f?p=&APP_ID.:1:&SESSION."><img src="#WORKSPACE_IMAGES#substract.gif"/></a>',
                        descr
                   ) value
    from properties 
    order by id
    In the latter type of element (where typ_id is 5) I want to have a textfield allowing only numberic values. If the user clicks on the image "add.gif" the value of the element must be added by 1, and when the user clicks on 'substract.gif' value must be lowerd by 1. How can I make this work? The images can be replaced by another element, if necessary.

    Hi Mir,

    My apologies for the restructuring of the query using case. I hope this would help you. The code could be much simpler if you could take the JS logic to a JS function on the page.

    http://Apex.Oracle.com/pls/Apex/f?p=44973:2

    See you soon
    Ligon
    PS: The code for formatting here has been driving me crazy so I have to put it in a page to show you :)

  • to access the (f02, val) apex_item.text of javascript

    I'm not sure how to proceed or if its possible.

    I have a report that uses apex_item.text in it. I'll be back on the 15 lines.

    I want to be able to change the value in the area of apex_item.text with a javascript command. Here I have fall down otherwise where in the screen and I want to take this value and insert it into the apex_item.text box.

    If I do it in JavaScript using the $x('F02').value = newval; control box, it only changes the first in the. If I want to change the boxes of second or third how should reference them? they all have the same name "f02".

    I looked through the api and I don't see what I need, or I don't know what I should use.

    If it is possible to do? fill the text boxes in apex_items of javascript?

    Hello

    You can change your query to be something similar to the one below. In this example, the selection of the 'dept' list is transferred to the "emp" text box when dept selection is changed

    select apex_item.text(1,empno,null,null,null,'f01_'||rownum) emp ,apex_item.select_list(2,deptno,'10,20,30,40','onChange=$x("f01_'||rownum||'").value=this.value;','N')dept from emp
    

    CITY

  • Tabular of Autocomplete Ajax does not work in SQL query using apex_item.text.

    Hello

    Is it possible to use the search function that is used in, Dennis Kubicek example, section tabular ENAME of Autocomplete Ajax
    in a query sql using apex_items?

    Request line:
    apex_item.text (17, xp.part_nr, null, null,'onfocus = "f_register (this);) 'autocomplete 'off' = ') PART '.

    In a first time, I followed the example by adding «onfocus = "f_register (this);"autocomplete = "off" in the attributes of the element in the report field.»
    It did not work... so tried to add computers in the attirbutes of the apex_item parameter.
    But it still doesn't work. No errors are given, it does not.
    Could someone help me please?

    THX!
    Astrid

    Of course, it is. I just tested it in this example:

    http://HTMLDB.Oracle.com/pls/OTN/f?p=31517:178

    with an element created using apex_item package and it works.

    If you have access to my Idée, you look at the source.

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • Just updated to IOS 10 and replace text does not work

    Just updated to IOS 10 and replace text does not work.  For example typing in omg should show oh my God. Has anyone else got this?

    I did the old thing: Disconnect to iCloud and sign back in. Unfortunately, he did not turn. The same thing happened on my iMac when upgrading to Mac OS Sierra - I lost all my text replacement. I also did Disconnect from iCloud and inback Panel . Unfortunately, it also didn't do the trick. Anyone know how to restore the replacement text. It is not has resided in the cloud?

  • Can I select and copy and paste text from a browser with the pencil of Apple?

    With the pencil of Apple on a new iPad Pro, I am not able to select, copy and paste text from a web page in Chrome or Safari. Y at - it a special order? A related question (not with a pencil): how to save files in PDF format.

    Well, it seems to be workin now. Never mind.

  • Why can I not send or receive SMS messages on my iPad Pro (cellular and Wi - Fi), but I can send and receive text Messages on my iPad (Wifi only) Air?

    Whey can I not send and receive SMS on my iPad Pro (cellular and Wi - Fi), but I can send and receive text Messages on my iPad (WiFi only) Air?

    You have set up on your iPad Pro of continuity?

    Continuity allows you to connect your iPhone, iPad, iPod touch and Mac - Apple Support

  • How to change the space between folder icon and the text on the personal toolbar?

    I have some files in the personal toolbar with just a letter to indicate what they are, but on the theme that I use, the letter is too far from the record, it belongs to and partially falls under following folder icon. I don't want to increase the space between all the icons to show the full letter, as this decreases the amount of icons that you can have in the toolbar. Instead, I want to reduce the space between the file and the text belonging to him, so he is right next to him instead of 5 pixels away.

    I found various entries to change the padding and margins in userChrome.css, but it's always around the icon, I don't know where to look to close the space between the icon and the corresponding text.

    Any help would be greatly appreciated, thank you.

    Did you check the value of the left margin of the text?

    You can set if necessary negative margin values.

    #PlacesToolbarItems .toolbarbutton-text { margin-left: -2px !important; }

    Add .bookmark-item [container] If this enough for the items in the folder

    #PlacesToolbarItems .bookmark-item[container] .toolbarbutton-text { margin-left: -2px !important; }
  • With Firefox 12 I'm impossible to drag-and-drop text in the text boxes or search bars. Is there a way to activate this feature?

    Firefox 11 allowed drag-and - drop text and the other two programs inside the browser itself. in FF12, I can do neither. How to restore this function?

    I had this problem too and couldn't add or move bookmarks either. If you have torbutton add-on installed, try disabling the addon. Perhaps it is caused by another addon

  • Why the blue search bar and the text does not?

    It started today, but I had this problem in the past before the last update of Firefox. Whenever I click on the search bar, it highlights with a blue background and no text shows. If I make a mistake, I can't see it.

    Firefox did the time you updated and it crashed whenever I did anything. Your last update seems to have solved the chrashing, but the blue bar with NO text is back.

    This problem may be caused by Comcast constant guard (protection of hits)

Maybe you are looking for

  • Firefox updates too often.

    I wonder what you guys play at, why the need to update so often?It's crazy. only 11 months ago, we were in version 3, we are now in version 7?What is going on? the software is not so different to justify a major version update.I am simply expressing

  • Satellite M30 WLAN Standard: 'G' as Possible?

    Recently bought FWG 114P WIFI Netgear router, which is capable of running on a transfer rate of 54 Mbps (802. 11 G).I understood from the M30 manual wireless inside the M30 is also able to cope with the G standard. However, if I push the WLAN router

  • Tecra A8-185 HARD drive works only in PIO and DVD in UDMA2 mode

    So there is a problem. Tonight, I need to have this laptop works propely :|How to change the HARD drive in UDMA mode? I can't do this in Windows XP... The BIOS update was made.

  • Photosmart 7520 error: there is a problem with the printer. Turn the printer off, then on.

    I have a photosmart 7520 affected by the following issues. Issue #1: randomly, all lights start flashing market and the screen reads the following: Error. There is a problem with the printer. Turn the printer off, then on. I can't find a move that th

  • Vista Windows Media Center crashes whenever I open it

    Everytime I open WMC it stays open for like 45 seconds and then closes and says Media center has stopped working and closes now. I tried the windows update, I don't even put it in place for a tuner or a tv internet because I can't get there.