Add data to table view from input fields in a page

Hi
        I am developing a BSP page which will be called from SRM shop transaction. After user enters the line item data, data will be passed back to shop transaction using OCI interface and the page attributes (URL).
   (1) How can I add data from input fields to table view on a page on a button click? I am able to add first line but I could not retain first line data when I try to add the second line.
      I am able to add multiple lines to table view if I use view and controller by adding to the line data to static attribute of the controller. I can’t use the controller and view because I can not set the attribute to Controller automatically.
   (2) Is there a way to pass an attribute (URL) to controller from SPRO? Like we pass an attribute to page automatically (Automatic page attribute).
   (3) How can I call a controller and view and pass the page attribute to the controller on a button click from a page with out controller?
Thanks
Sreenivas

I'm trying to test the merge with the following data in a test.txt file:
ZZZZZ114923000004
1234Z400660000001
ZZZZZ114923000010
Getting an error:
SQL> @C:\dataformats\sql\pc12seriesMerge.sql
Directory created.
SP2-0552: Bind variable "17" not declared.
SQL>
here it the pc12seriesMerge.sql file
set serveroutput on
create or replace directory user_dir as 'c:\dataformats\incoming\';
DECLARE
v_filename VARCHAR2(100); -- Data filename
v_file_exists boolean;
v_file_length number;
v_block_size number;
f utl_file.file_type;
s varchar2(200);
lineString varchar(200);
v_account varchar(5);
v_IDN varchar(6);
v_quantity varchar(6);
BEGIN
v_filename := 'TEST.TXT';
DBMS_OUTPUT.PUT_LINE(v_filename); --shows filename
utl_file.fgetattr('USER_DIR', v_filename, v_file_exists, v_file_length ,v_block_size );
IF v_file_exists THEN
dbms_output.put_line('File Exists');
create table ext_table (
account varchar2(5),
idn number(6),
quantity varchar2(6)
organization external (
type oracle_loader
default directory user_dir
access parameters (
records delimited by newline
fields (
account position(1:5) char(5),
idn position(6:11) char(6),
quantity position(12:17) char(6)
location ('test.txt')
reject limit unlimited;
MERGE INTO id_req_stg t
USING (
SELECT account,
idn,
decode(quantity, '-', 0, to_number(quantity)) as quantity
FROM ext_table
) v
ON ( t.account = v.account AND t.idn = v.idn )
WHEN MATCHED THEN
UPDATE SET t.quantity = v.quantity
DELETE WHERE t.quantity = 0
WHEN NOT MATCHED THEN
INSERT (account, idn, quantity)
VALUES (v.account, v.idn, v.quantity);
ELSE
dbms_output.put_line('File Does Not Exist');
END IF; -- file exists
EXCEPTION
WHEN UTL_FILE.ACCESS_DENIED THEN
DBMS_OUTPUT.PUT_LINE('No Access!!!');
WHEN UTL_FILE.INVALID_PATH THEN
DBMS_OUTPUT.PUT_LINE('PATH DOES NOT EXIST');
WHEN others THEN
DBMS_OUTPUT.PUT_LINE('SQLERRM: ' || SQLERRM);
END;
/

Similar Messages

  • Add values on VB(2 - From value field

    In the customizing t.c VB(2
    I need to add more values, in the from value field, for example "the first day of the semester" "first day of the trimester"...
    I don't know if it is possible, I've attached a screen capture.
    Thanks

    I'm not aware of any ODP.NET bug on that. Usually the cause is data stored incorrectly in the database.
    How did you insert the data, was it from ODP.NET as well?
    What characterset is your database?
    select parameter, value from nls_database_parameters where parameter like '%CHARACTERSET%';
    Insert a single chinese character in a one column table, dump it with the following, and let us know the results:
    select dump(<columname>,1016) from <tablename>
    Paste the chinese chararacter here as well.
    Greg
    Edited by: gdarling on Mar 26, 2009 9:38 PM
    Also, fyi, the [ODP forum|http://forums.oracle.com/forums/forum.jspa?forumID=146] would be a more appropriate place for this type of question in the future.

  • How To Update A Table View From Client Side !!!!

    Hi I would like to update a table view from the Client Side. So that the user can keep updating the relevent data on the client and when they have finally finished they can press Save so the entire page is then sent to the Server.
    Does anyone know how to do this, I guess u have to use the EPCM, I have just started on it and would really appreciate some Help.
    Thanks,
    Emmanuel.

    This is what I found :-
    There are a couple of ways to approach this.
    1) load the excel spreadsheet into the database "as is". You can use interMedia
    text to convert the .xls file into a .htm file (HTML) or use iFS (see
    http://technet.oracle.com/
    for
    more info on that) to parse it as well. InterMedia text will convert your XLS
    spreadsheet into a big HTML table (easy to parse out what you need at that
    point)
    2) Using OLE automation, a program you write can interact with Excel, request
    data from a spreadsheet, and insert it. Oracle Forms is capable of doing this
    for example as is other languages environments. In this fashion, you can remove
    the "manual" and "sqlldr" parts -- your program can automatically insert the
    data.
    3) You can write a VB script that uses ODBC or Oracle Objects for OLE (OO4O) in
    Excel. This VB script would be able to put selected data from the spreadsheet
    into the database. We would recommend OO4O. It provides an In-Process COM
    Automation Server that provides a set of COM Automation interfaces/objects for
    connecting to Oracle database servers, executing queries and managing the
    results. OO4O is available from
    http://technet.oracle.com

  • Transfer Table View from R/3 to Sap BW? How to Replicate DS form R/3 to Bw?

    Dear Friends ,
    I have a requrement where I need to transfer a Table view from SAP R/3 to SAP BW System.
    I have made view ,
    In RSO2 identified Data source
    In RSA3 Did the data extracion process.
    I need proceeding steps to follow in SAP BW
    1. Replicate the data source
    2.Etc
    Regards,
    Gaurav sood

    Hi Gaurav,
    Your question is not clear.
    There is no need to transfer view from R3 to BW.
    ONce the datasource created in r/3 by using views or tables you have test the datasources wther it extract records or not.
    Once the testing is done then in BW side you have to replicate using RSA1 tcode and then extract data from r/3 to bw...
    Hope it helps..let me know if its not clear
    Regs,
    VAC
    Assign points if helpfull

  • Usage of attribute1 field of base table as a text field in OA Page

    Hi Gurus,
    Could you please let me know if attribte1 field of an oracle base table can be used as a simple text or LOV input field in OA Page, NOT as a DFF Field.
    Thanks in advance.
    With warm regards,
    SKA

    In my case, Attribute1 is reserved for DFF. But I have to use it with a Text Input Item. OA page is showing the value stored for attribute1 in database. But it doesn't store the value in Database through OA Page. I am able to save other fields of the same VO through same OA Page, but not attribute1.
    Is it because attribute1 is registered with DFF or some other reason??
    Please advice.
    Thanks in advance.
    -SKA

  • How to Change UI element from input Field to Date Picker

    Hi All,
    One Custom View is created in which we are pulling some fields from a custom context node created using the value Node.
    For one of the field which is already an input field we need to convert it to date picker.
    in the GET_P_METHOD
    CASE IV_PROPERTY.
    WHEN 'fieldType'.
    rv_value = cl_bsp_dlc_view_descriptor=>field_type_radio.
    WHEN 'radioCols'.
    rv_value = '1'.
    ENDCASE.
    We can change the attribute to clbsp_dlc_view_descriptor_ and bring
    checkbox,radiobutton,hyperlink and all but not finding anything for Date picker.
    Can anyone suggest a method by which we can convert a UI element to Date Picker.
    Any suggestions will be highly appreciated.
    Regards,
    Sijo

    The technical data type for that field should be DATS then input help will automatically come.
    Also in get_m method of that attribute should have
      metadata = cl_crm_uiu_bt_date_tools=>get_m_date( ir_model_binding  = me
                                                      iv_attribute_path = attribute_path ).
    Regards,
    Shobhit

  • Data no getting populated from input help to target field

    Hi ,
    I have made a input help for a field.
    and have used the following code to populte the data into the input help.I am having the data displayed but the data doesnot get populated on selection.
    CASE cs_dropdownlb_data-fieldname.
          WHEN 'ZZSALSPOS'.
            assign cs_dropdownlb_data to <extended_data>.
           lv_display = is_screen_structure-zzdisplay.
           clear ls_fieldcat.
           ls_fieldcat-fieldname = 'ZZSALSPOS'.
           ls_fieldcat-headertitle = 'Broker Id'.
           append ls_fieldcat to et_field_catalog.
           ls_fieldcat-fieldname = 'ZZBROKER'.
           ls_fieldcat-headertitle = 'Broker House Description'.
           append ls_fieldcat to et_field_catalog.
            CALL FUNCTION 'Z_SEARCH_HELP_SALES_ID'
             EXPORTING
               IV_DISPLAYALL        = lv_display
               IV_DIS_CHANNEL        = '11'
               IV_DIVISION           = '00'
             TABLES
               T_COST_CAT_F4        = lt_posid
            fldcat_add 'ZZSALSPOS'.
            fldcat_add 'ZZBROKER'.
            fldcat_add 'ZZREGION'.
            fldcat_add 'ZZDIVISION'.
            fldcat_add 'ZZSUBTEAM'.
            fldcat_add 'ZZTEAM'.
            SORT lt_posid BY zzsalspos zzbroker zzregion zzdivision zzsubteam zzteam.
            CREATE DATA <extended_data>-data TYPE zcrmt_mkt_broker_tab.
            ASSIGN <extended_data>-data->* TO <table>.
            <table> = lt_posid.
    I would sincerely appreciate and rewad if any solution could be suggested ....Thanking in advance...
    Narsingh

    The problem has been resolved

  • Insert form view data into table view

    Hi Experts,
      I have
                 --> a form view with three input fields and a button(ADD)
                 --> a table view with three columns.
    Both views in same page.
    My requirement is when a user enters the three inputs and click button (ADD) all the inputs entered should be inserted in the below table view.
    User can be able to enter multiple lines by clicking ADD again and again with different inputs.
    How to insert rows from a form view event (ADD) into table view?
    Thanks&Regards,
    karthik

    Hi
    Which 'System Action' are you using in the 'Add' button? You need to use 'Insert Row' Action. When you select this below the action you will get one box 'Apply To' there you select the table. Then save & deploy the model, you will get what you want.
    Caution - THis data will not get stored in the table permenently, once you close this model you will loose all the data.
    Regards
    Sandeep

  • Help needed in pushing data into Table view Popup

    Hi All,
    I am trying to create a custom pop up and populate this with Reason code and descriptions. For this, i have created a popup and placed a table view on the popup. But when i am stuck how to push data into the popup from an internal table.
    Any pointers on this will be really helpful.
    Regards,
    Udaya

    Hi,
    Even I am facing the similar issue.  I have created custom component with four views for my requirement and created one view set and displaying the viewset in the pop up screen.  I also created event handler and added required coding to open the pop up screen.
    I have added event handler in BT116H_SRVO component and now the pop up is opend with the required fields but the field is not having any data the value is empty in the pop up screen.  I also binded context node details in the standard component.
    While debugging I found that the collection wrapper is empty, so the data is not populated in the pop up screen.  So kindly hlep me how to fill the collection wrapper and populate data inside the pop up screen.
    kindly let me know how to overcome this issue. 
    Thanks and Regards,
    Kannan.

  • Add records in table ACCESS from labview by ActiveX

    I try to add records in table of database ACCESS by an ActiveX from labview but my programme doesn't work ...
    What is the problem ?
    I have attached my VI
    Thanks in advance
    hasna
    Attachments:
    base1.vi ‏35 KB

    On Thu, 11 Jul 2002 08:13:48 -0700 (PDT), Lab Viewer
    wrote:
    >I saw your previous posts related to ActiveX/Access. I once had the
    >same kind of problems. It's not an easy task (without a toolkit)
    >because you have to learn the "interface" provided by Access/DAO in
    >order to manage what you are trying to do.
    >In my case, the best solution it was to follow the Visual Basic for
    >Applications examples included in MS Access. Even though you don't
    >know VB, don't be afraid. Important is to figure out from that example
    >what methods/properties you need to use, the proper order to call them
    >and eventually some parameters. You are dealing with the same
    >methods/properties in LabVIEW, the difference is that you have them in
    >a graphical format instead of text
    .You can find these examples by
    >going to MS Access help > Index and type DAO objects and then choose
    >one to start with (Database, recordset, field =85).
    >
    >Hope this helps
    The examples on NI's website were originally written using the DAO
    model, but the latest one was written using the ADO model.
    However, I am unable to find either example LLBs on their website
    anymore. Maybe they're trying to push their SQL Toolkit.
    Along with the VBA help in MS Access, I *highly* recommend the book
    ADO Programming for Dummies. Wonderful book. Helped me understand the
    VBA help. :-)
    Again, if anyone is intersted in VIs using ActiveX that works. He/she
    is welcome to email me.
    Linda

  • How to add button to Table View and initiate action?

    hello,
    i'm new to Javafx 2, i recently followed the tutorial on tableview and would like to add a deletion action on particular row. What i had in mind was to add a delete button on the last column of each row, when clicked it will fire a handler and remove that row from the data observablelist. how do i do that?
    please advice,
    wesley

    Hi,
    Please find the below code. I am creating a table view with two columns. The second column consists of delete button.
    TableVeiw table = new TableView();
    /*First column*/
    final TableColumn<String> titleCol = new TableColumn<String>("Title");
    titleCol.setProperty("title");
    /*Second column*/
    TableColumn<String> actionCol = new TableColumn<String>("Action");
    actionCol.setCellFactory(new Callback<TableColumn<String>, TableCell<String>>() {
          @Override
          public TableCell<String> call(TableColumn<String> param) {
                 final TableCell<String> cell = new TableCell<String>() {
                          @Override
                          public void updateItem(String value, boolean empty) {
                                super.updateItem(value, empty);
                                final VBox vbox = new VBox(5);
                                Image image = new Image(getClass().getResourceAsStream("/images/delete.png"));
                                Button button = new Button("", new ImageView(image));
                                button.getStyleClass().add("deleteButton");
                                final TableCell<String> c = this;
                                button.setOnAction(new EventHandler<ActionEvent>() {
                                      @Override
                                      public void handle(ActionEvent event) {
                                              TableRow tableRow = c.getTableRow();
                                              Item item= (Item) tableRow.getTableView().getItems().get(tableRow.getIndex());
                                              /* TODO : Delete this item from your data list and refresh the table */
                          vbox.getChildren().add(button);
                          setGraphic(vbox);
            cell.setAlignment(Pos.TOP_RIGHT);
            return cell;
    grid.addColumns(titleCol,actionCol);I hope this can help you. :)
    Edited by: Sai Pradeep Dandem on Aug 18, 2011 10:04 PM

  • Unable to create visual composer table view from the Bex Query

    Hi
    I am trying to create the visual composer lay out from a Bex query. The Bex query contains a set of Key figures and a structure.
    These key figure and structure combination is forming a table in the query output. Key figure parameters are coming as rows and Structure parameters are coming as columns.
    example query out put:
    Total, HPC, FDS excel ICe etc are as Structure elements and coming as columns in query out put and
    Invoice value, Gross sale value, Efficient operations etc are as Key figure elements in query and coming as rows in query out put.
    But if I map this query to visual composer table view all these are coming as columns as given below.
    Total Invoice value ,             Total Gross sale value,    Total Efficient operations,      HPC Invoice vale,.........
    And if execute the query will giving the out put in single row.
    Can anybody help me out to map this in the row column format?
    Is it really possible to do in VC?
    I am using CE 7.2. The VC model I need to be embedding in BPM.
    Please help me to solve this issue. I completely stuck up this issue.
    Regards
    Sajith P
    Edited by: Sajith P on Aug 17, 2010 3:07 PM
    Edited by: Sajith P on Aug 17, 2010 3:15 PM

    Hi,
    Try to use some function module which will convert query data into flat tables. (eg., RS_VC_GET_QUERY_VIEW_DATA_FLAT).
    Hope this solves your issue.
    Regards,
    Vinay

  • How to view "From" header field in OUTgoing messages in Mail? Frustrating.

    In Mail v.4.3 (in OSX 10.6.4), I need to view the "From" field in my outgoing messages as I am composing them. However, there seems to be no setting in Mail which allow this.
    I find this very frustrating because in Eudora (which I used to use), the "From" field in outgoing messages is visible by default. But in Mail, not only is it not visible by default, there seems to be no way to make it visible.
    In the "Customize..." button to the left of the Subject field in outgoing messages, one has the option to add as default outgoing message fields "cc," "bcc," "Reply-To," and "Subject," but none of those are what I want. It allows one to also view the address of the mail server, but that also is not what I'm looking for. What I want is to see my outgoing +email address+. And nowhere is there an option in the Preferences to turn this on. (At least as far as I could tell.)
    In fact, the only way to see the identity in the outgoing "From" field is to go to Preferences, then click on Accounts, and look there; or send oneself a test email. Both of which are a hassle and should be unnecessary.
    In case you're curious as to why I want to see my outgoing "From" header field:
    I have several different "personas" online, each of which uses a different email address: My work address (with a work-related domain); my family/personal address (with a different email address than my work address); an online avatar I use in various gaming sites (also with its own address, since I don't want to use my personal name/address in the gaming community); and so on. However, I have all incoming emails to all accounts auto-forwarded to the same central email account. Most of the time I'm just replying to business emails, so my outgoing "Full Name" and "Email Address" (in Preferences>Accounts) are generally set to my business name and address; but on occasion when I want to reply to a non-business email and not have the recipient see my business email address, I go in to Preferences>Accounts and change "Full Name" and "Email Address" (i.e. what is displayed to the user) to something different. And when I'm done with that, I change it back to my business address.
    However, sometimes I forget if I've changed it back or not, or forget what I've changed it to. In Eudora, All one needed to one was create a new outgoing email and it would display the "From" field so I could instantly see my outgoing identity. But in Mail, there is no "From" field in outgoing emails, so I'm constantly nervous and wondering which outgoing identity I may have changed to and accidentally forgotten to change back from.
    (Yes, yes, I know that if a recipient wanted to be snoopy, they could look at the "full headers" of any incoming email and see the name of my email server, which may different from my displayed email address; but we're not talking about spy-stuff here, I'm just trying to not confuse people and keep business separate from personal.)
    So: is there any way for me to see the outgoing "From" field in the emails I send? Or am I condemned to constantly (and mostly unnecessarily) checking "Preferences>Accounts" to see what I have enetered there?

    Thanks for replying.
    What is the "compose window" to which you are both referring? I could find no reference to such a thing in the Mail menus or Help.
    Do you mean the "Composing" pane in the Preferences? I don't see what either one of you is referring to there, but I did notice there something that could function as an awkward workaround: If I click on the "Automatically CC myself" box in Preferences>Composing, then when I start a new email, my email address is displayed in the "CC" field -- and luckily, Mail allows me to then delete my email address out of the CC field, so I don't have to spam myself with duplicate copies of all my emails. This way, I can at least briefly see what email address I'm using, before I delete it from the CC field. Pretty awkward and unnecessarily laborious, however -- still not a perfect solution.
    Or, by "composing window," are you referring to an outgoing email? As I said in my original comment, I do see what Ernie called "a small box with lines and an arrow at the bottom left of the header box." This is what I had to say about it:
    +"In the "Customize..." button to the left of the Subject field in outgoing messages, one has the option to add as default outgoing message fields "cc," "bcc," "Reply-To," and "Subject," but none of those are what I want. It allows one to also view the address of the mail server, but that also is not what I'm looking for. What I want is to see my outgoing email address. And nowhere is there an option in the Preferences to turn this on. (At least as far as I could tell.)"+
    In other words, when Ernie says, "click the box beside From," I can't do that -- because there is no such option. That's the whole problem in the first place. If there was a "From" field beside which I could click a box to make it appear, I would have done so! But there is no "From" field in the "Customize" section of the "small box with lines and an arrow at the bottom left of the header box."
    I find it completely mystifying that both of you seem to be able to see a "From" field available to be added to the header of outgoing emails, yet no such option is available to me in Mail. What possibly could be causing this? 10.6.4 is freshly installed on my machine, and Mail seems brand new and uncorrupted. And I'm using Mail 4.3, the latest version.
    Are you saying that everyone else can see an option to have a "From" field in their outgoing messages, but I uniquely don't? Very very very strange.

  • Create Tabular Form wizard - how to add rows to Table / View Owner list?

    Create Tabular Form wizard asks to choose "Table / View Owner"
    How to add additional schemas/users to this "Table / View Owner" dropdown list?

    Next step:
    I tried to create 2nd application - and it sees and allows to select from schemas I added in previous step.
    Then I tried to add 1 more schema - and 2nd application can't see it...
    I create 3rd application and select 1st schema (assigned when workspace was created) - and it sees only this one schema
    I create 4th application and select another schema (added in previous steps) - and it sees 2 schemas from 4 assigned
    what is this?
    how to live with it?

  • Sort table according to input field.

    hii,
      i have a strange requirement in it there is a input fiefld and below it is table . wat i have to do is when user enter a albhabet in the
      input field then the grid should sort according to his entry for eg (if he enters a all records in table should sort by a and after a if he enters b then record should sort with ab  an similsrily.) Only by writing alphabet without any user action.
    is it possible .
    Regards,
    Gaurav.

    Hello Gaurav,
    In webdynpro for ABAP, it is not possible.
    In Web Dynpro for ABAP, you have to use button i.e. event triggering
    But you can achive this thing into Web Dynpro for JAVA or in BSP's.
    Regards,
    Narendra

Maybe you are looking for

  • ALL Required Patches for EBS 11i AIX

    Hi Everyone, We have an on-going (UAT) user acceptance test for a new setup EBS 11i on Aix 5L, for FINANCIAL MODULES(GL,AP,AR,CE,FA). Currently, we still encountered error or bugs and need to apply some patch one by one. What I want is a proactive wa

  • Collect UserID from Corporate Directory

    Hi We currently collect Caller Name from our corporate directory in UCM but would also want to collect UserID, is that possible?

  • Copy & Paste from PowerPoint

    I used to be able to copy shapes and photos from PowerPoint and paste them into Captivate. Now I'm not able to do that. Has anything changed in Captivate 5.5 that would prevent copying from PowerPoint and pasting into Captivate? (or is it just me)

  • Subscription expires soon notice

    Hi, I received an email today that state my subscription expires in 3 days. I look at my account status and everything is current. The email does not say what subscription expires. Is this a fraud email or is it something I need to address Thank you

  • Indesign Folio Desktop Preview not loading/working?

    Hi, I'm trying to preview my Folio that I made in Indesign CC and the preview doesn't seem to be working.  I press the Preview on Desktop option, the loading bar window pops up with "Preparing Preview" : and then it goes away and nothing happens.  I'