Insert the page elements when loading data

Hi all

I use APEX 5.0 and using wizard to load data to download the data.

My table has 7 fields and I need to insert 3 fields in the table while loading data.

I have created a process after Parse the data downloaded as below.

The result is that the 5th field will be First Row column as 'Y' and no 6th and 7th column.  There is value of 5th field only.

When click on next to data validation page, it shows the 5th field with column field and 6th without the name of the column.

Please help me to the point where I must change my code.

BEGIN
APEX_COLLECTION. ADD_MEMBER)
p_collection_name = > 'PARSE_COL_HEAD ',.
p_c001 = > 'HUBCODE ',.
p_c002 = > 'UPLOAD_FILENAME ',.
p_c003 = > 'UPLOAD_DATE');

FOR UPLOAD_ROW IN (SELECT SEQ_ID
OF APEX_COLLECTIONS
WHERE COLLECTION_NAME = "SPREADSHEET_CONTENT")
LOOP
APEX_COLLECTION. () UPDATE_MEMBER_ATTRIBUTE
p_collection_name = > 'SPREADSHEET_CONTENT ',.
p_seq = > UPLOAD_ROW. SEQ_ID,
p_attr_number = > '5',.
p_attr_value = >: P2_HUB_CODE);

APEX_COLLECTION. () UPDATE_MEMBER_ATTRIBUTE
p_collection_name = > 'SPREADSHEET_CONTENT ',.
p_seq = > UPLOAD_ROW. SEQ_ID,
p_attr_number = > '6'.
p_attr_value = >: P2_FILE_NAME);

APEX_COLLECTION. () UPDATE_MEMBER_ATTRIBUTE
p_collection_name = > 'SPREADSHEET_CONTENT ',.
p_seq = > UPLOAD_ROW. SEQ_ID,
p_attr_number = > '7'.
p_attr_value = > SYSDATE);

END LOOP;
END;

Want to close this loop and hope that it will be useful for others.

In the end, I managed download document using the latest plugin for APEX 5.0 excel2collections.

As MK pointed out, I can control my data using the plugin.

Another point more directly is users can download xls or xlsx files, do not need to convert them to csv format before downloading.

I thank all of you for the help.

Tags: Database

Similar Questions

  • Cannot find the file error when loading data from text file to Oracle

    Hello

    I have an interface where I am loading a data from the text file to Oracle.
    But when I try to do that I am getting following error.

    ODI-1227: SrcSet0 (load) task fails on the source FILES SAPMM connections.
    Caused by: java.sql.SQLException: file not found: d:/mdb/#General.get_filename
    to com.sunopsis.jdbc.driver.file.FileResultSet. < init > (FileResultSet.java:160)
    at com.sunopsis.jdbc.driver.file.impl.commands.CommandSelect.execute(CommandSelect.java:57)
    at com.sunopsis.jdbc.driver.file.CommandExecutor.executeCommand(CommandExecutor.java:33)

    SAPMM is the name of the connection.
    I use get_filename to get the name of the file and it is fetching a correct value as long as this variable is updated in the previous stage of this interface.
    KM, used for loading is SQL file

    What would be the cause of this error?

    Thank you
    Mahesh

    Also a single query would be ok if I'm moving only generated package (according to your scenario3) scenario and not UI? It running properly?

    Yes... It runs successfully

  • I activated the auto updates. When I take the update it says in the center of the page "the page failed to load".

    I activated the auto updates. When I take the update it says in the center of the page "the page failed to load".

    I tried to take different paths, as via the Control Panel, but it's the same thing.

    Operating system?

    Try the following: -.

    Open search Vista Start Menu Bar and type: RUN

    Click OK

    Type the following lines, and after each one, click OK: -.

    regsvr32 jscript

    regsvr32 vbscript

    regsvr32 /i mshtml

    No guarantee

    TaurArian [MVP] 2005-2010 - Update Services

  • When I click to open windows update I see on the screen (the page failed to load)

    When I click to open windows update I see on the screen (the page failed to load)

    I'm trying the two just doesn't work

  • Cannot connect to YouTube, the page will not load.

    I use version 28.0 and I cleared my cache, cookies and history of the browser. I can watch a video on Youtube, if a direct link and sometimes access to the site itself, but I can't log on my YouTube account. When I click on login, the page tries to load until I finally exit out of it and give up. After this point, I can not access the real YouTube website. I am able to connect to any other site, I've tried, including Facebook and my Gmail. I have no problem with this in my torch/Google Chrome or Opera browsers.

    I added Firefox on my programs that can both through Windows Firewall and have run Malwarebyte scans s, Windows Defender, and SuperAntiSpyware. What can I do to fix this? Y at - it a plugin that I missed resettlement, because I had to uninstall and reinstall Firefox from scratch recently, or is there something else I'm missing?

    The problem seems to have resolved itself somehow. I didn't do something different after trying to solve this problem, far backward at the beginning and running a couple of analysis between the two then and now you can find the usual cookies of my sites which had been cleared when I complained about this problem in the first place. I really hope that it does not start again.

  • my systems page will not open error message "the page failed to load".

    Original title: my systems page does not open after going into the control panel and then system and maintenance

    my systems page opens not after going under maintenance then system and Control Panel. This shows simply "the page failed to load". I need to access this page to share files from one computer to the other. can anyone help?

    Hi Sarah Brown,.

    (1) remember you to make changes prior to this problem?

    (2) what is the complete error message you receive?

    Method 1: Run the fixit available in the link below and check if that makes a difference

    Difficulty of broken desktop shortcuts and common system maintenance tasks

    Note: Fixit would attempt to recover bad sectors on the hard disk, in the course of this process there are chances of data loss from that particular area.


    Method 2:
    if a Protection of resources Windows (WRP) file is missing or is damaged, Windows may not behave as expected. Auditor of file system (CFS) scan to fix all of the corrupted system files. To do this, follow the steps mentioned in the link below:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

  • Network and sharing - "the page failed to load".

    The network does not funtion on my new laptop computer. When I try to open the network and sharing, it gives me a white page that says "the page Impossible to load. It worked fine when I had last week. If I look at the devices it is said they work normally.

    Colombia-British

    Hello, spearbc

    Please use the Forum for answers!

    Have you installed a software between yesterday and today?

    To clarify, you get this error in the centre network and sharing, correct? (Image)

    You can try to run the System File Checker and let us know the results, analyze the system-protected files and replace the incorrect versions with correct versions of the files Microsoft.

    Open an elevated command prompt. To do this, click Start, click principally made programs, Accessories, right-click guest, and then click run as administrator. If you are prompted for an administrator password or a confirmation, type the password, or click allow.

    Type the following command and press ENTER: sfc/scannow

    We can't wait to hear back on your part.

    David
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Result passage of PL/SQL code for the page element

    Hello

    I have created a process in after the header to fill data to the page of the form elements.  The pl/sql code is like bellows.  Then I got the error message:

    ORA-06502: PL/SQL: digital or value error: character number conversion

    My question is that I do not see the difference in format between the page element and block pl/sql variables (e.g. : P31_STUDY_ID vs v_P31_STUDY_ID), they are either numeric or text field (in fact I have hidden field, but don't see conversion back to the digital field solved the problem).  And don't see needs to set the format mask.  Is there another way to detect the column that causes the problem, or if there is a syntax error with my assignment (from the variable element on the page)?  Thank you very much!

    ============================

    Declare

    number of v_P31_STUDY_ID;

    number of v_P31_STUDY_SITE_ID;

    v_P31_STUDY_SITE_NAME VARCHAR2 (255);

    v_P31_STUDY_SITE_NUM varchar2 (10);

    number of v_P31_STUDY_SITE_NAME_NUM_ID;

    number of v_P31_STUDY_SITE_OPEN_STATUS;

    v_p31_comments VARCHAR2 (255);

    Start

    Select

    tbl_study_site.study_id,

    tbl_study_site.study_site_id,

    study_site_name,

    study_site_num,

    STUDY_SITE_NAME_NUM_ID,

    STUDY_SITE_OPEN_STATUS,

    Comments

    in

    v_P31_STUDY_ID,

    v_P31_STUDY_SITE_ID,

    v_P31_STUDY_SITE_NAME,

    v_P31_STUDY_SITE_NUM,

    v_P31_STUDY_SITE_NAME_NUM_ID,

    v_P31_STUDY_SITE_OPEN_STATUS,

    v_p31_comments

    of tbl_study_site, tbl_study_site_attrib

    where tbl_study_site.study_id =: p30_study_name

    and tbl_study_site.study_site_id = tbl_study_site_attrib. STUDY_SITE_ID

    and tbl_study_site_attrib. STUDY_SITE_ATTRIB_ID =: P31_STUDY_SITE_ATTRIB_ID;

    : P31_STUDY_ID: = v_P31_STUDY_ID;

    : P31_STUDY_SITE_ID: = v_P31_STUDY_SITE_ID;

    : P31_STUDY_SITE_NAME: = v_P31_STUDY_SITE_NAME;

    : P31_STUDY_SITE_NUM: = v_P31_STUDY_SITE_NUM;

    : P31_STUDY_SITE_NAME_NUM_ID: = v_P31_STUDY_SITE_NAME_NUM_ID;

    : P31_STUDY_SITE_OPEN_STATUS: = v_P31_STUDY_SITE_OPEN_STATUS;

    : P31_COMMENTS: = v_p31_comments;

    end;

    =============================

    Identify the root cause. He's always on the format of the column, there is an error.  Thanks for your help.

  • Can not set a value by the executed dynamic action on the page element "selection list."

    I created an agenda of the page 'list of selection' and I want to when I change a value in another element of the page set only 'screen '.

    I created a dynamic action on the page element "selection list" for this.

    These are the dynamic action attribute:

    When:

    ======

    Event: change

    Selection type: point

    Article: P29_PURCHASE_ORDER

    Condition: No strings attached

    Advanced:

    ========

    Scope of the event: static

    Identification:

    ==========

    Action: Set

    The ' Action Page when the changed value "attribute of the element of 'list of selection' = 'None', and when I run form the dynamic action run and set the value for once and do not update the value according to the change in the article"list of selection. "

    Note: when I change the previous attribute of 'Redirect and set', dynamic action run and properly value, but the value was hidden soon

    I want to value when the value of change of select list according to this change successfully.

    Please, advice me,

    Best regards

    Mustafa Ezzat

    Hello

    you set the value of the 'Page elements to submit' to P29_PURCHASE_ORDER?

    Then, the SQL statement would use the current selected value.

    This is the help text says: "specify a list separated by commas of the elements of the page that will be submitted to the server and therefore available for use in your"SQL statement"," PL/SQL Expression"or"Body of the PL/SQL function".»

    Kind regards

    Erik-jan

  • My computer always tells me to update the Pages, but when I go to the App store, it will not be updated, I just get the spinning wheel.

    My computer tells me every day to update the Pages, but when I go to the App store (where I bought it) and click on update, I just get a spinning wheel.

    The specific version of Mac OS X (Apple logo: about this Mac) and version specific Pages (Pages: pages) will prevent us from guess.

  • Disable "insert the front element / remove item ' in the table

    Hello guys.

    It is possible to deacitvate function "insert the front element / delete" appears after right-clicking on a table in the front?

    "Description and trick" should stay.

    Thank you.

    Alex

    You can customize the context menu to remove elements of the request and keep others:

    Click on the table (and not on the array element!) in the Panel and select Advanced-> Menu contextual Run - Time-> Edit...

    This brings the context Menu Editor:

    Change the control drop-down menu of "Default" to "Custom".

    Select it "?" line in the tree on the left control.

    on the right, change the element Type of the "user position" «Application point-> Description and Tip...» »

    It automatically fills the corrent name and the tag.

    Save the rtm either in a file or in the control.

    LV will automatically manage elements of the application in the control, any necessary events.

    I sometimes find the function "Menu copies" of the context menu very useful if I want to just disable some elements.

    http://zone.NI.com/reference/en-XX/help/371361G-01/lvconcepts/customizing_vis/#Customizing_Menus

  • Half of the page disappears when horizontal scrolling (Bug?)

    This looks like a bug to me... When you open a page in a site of muse in a browser and you re size the browser but not as much as the next breakpoint, you get a horizontal scroll bar at the bottom of the page. When you scroll the contents of the page disappears. See screenshot.

    scrolling error.jpg

    Can you see if there are hidden objects outside of the page in Adobe Muse. Do a select all and remove all objects that are outside the page.

  • I need a file to an exact width and height and it must be in png format, because it allows to translucency. My graphics are only the top of the page and when I export only the graph is not exported the entire file. How can I get the entire file to ex

    I need a file to an exact width and height and it must be in png format, because it allows to translucency. My graphics are only the top of the page and when I export only the graph is not exported the entire file. How can I get the entire file of export including blank parts?

    in the export dialog box, you have chcked 'use of work plans? ''

  • How to position the page element?

    Hello

    I created a report in the same region, has also created a page element in the same region. The page element is now on the top of the report, but I need to show in the report. How can I achieve that?

    Thank you

    Victor

    Depends on your version of the apex. 4.1/4.2ish there is an attribute on the region of the "Position of the display element.

    Enter this below content.

  • Whenever I click on any button of the trial download on the adobe Web site you I get redirected to a page where the 4 squares are moving to load the page, but never load it, I left my browser on for hours and yet it still doesn't work anyone can help?

    Whenever I click on any button of the trial download on the adobe Web site you I get redirected to a page where the 4 squares are moving to load the page, but never load it, I left my browser on for hours and yet it still doesn't work anyone can help?

    clear your adobe.com cookies or use a different browser.

Maybe you are looking for