Hi all, I am facing two problems. What am i looking for is:

1)Adding row to a grid(with no DS). I have this procedure that starts working when a button "Add" pressed.Then a dialog shows up and there are several fields to fill (like this one govPartAddInfoPanel.govName)

procedure addGovInfoToGrid is
    v_govName varchar2(50);
    v_eventName varchar2(50);
    v_eventDate varchar2(50);
  begin
    v_govName:=FORMSPIDER.api_component.getvaluetx('govPartAddInfoPanel.govName');
     FORMSPIDER.api_component.setvalue('govPartPanel.govGridName',v_govName);
  end;

Here is a grid:

    <grid scrollBarPolicy="WhenNeeded">
      <column headerLabel="№" width="25">
        <textLabel/>
      </column>
      <column headerLabel="Name">
        <textLabel name="govGridName"/>
      </column>
      <column headerLabel="Event name">
        <textLabel/>
      </column>
      <column headerLabel="Date" width="50">
        <textLabel/>
      </column>
    </grid>

For the beginning i want to fill in "name" column. It works, but it fills all the rows in a grid column but i need only one value to append to the grid.

2)Is there any possibility to load saved file in FS in order to let user edit previously filled fields and radio-buttons/checkboxes?

asked 24 Mar '14, 18:03

Smith's gravatar image

Smith
116
accept rate: 0%

edited 24 Mar '14, 18:30


Hi Smith,

1) Adding row to a grid(with no DS).
Bind a query based dummy datasource to the Grid and populate the datasource using api_datasource.createRow API.

2)Is there any possibility to load saved file in FS?
Yes. Here is a tutorial on how to upload a file.. There is also the api_datasource.importFromFile API which allows the developer upload data from an excel file to a datasource.

Hope this helps.

Kind Regards,
Yalim

link

answered 25 Mar '14, 05:29

Yalim%20Gerger's gravatar image

Yalim Gerger ♦♦
1.8k5
accept rate: 15%

Thank you for your answer, I will use this advice!

(29 Mar '14, 12:10) Smith
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×85
×19
×8
×1

Asked: 24 Mar '14, 18:03

Seen: 1,348 times

Last updated: 29 Mar '14, 12:10


© Copyright Gerger 2017