Hi, working with FS 1.9

procedure createFormRown (panel in out paneltype) as
     x1n number;
     x1v varchar2(400);
       begin
          x1v := panel.dsource; -- Data source
          api_application.showpopupmessage('CreateFormRow Data Source = ' || x1v); -- Panel Data Source
          x1n :=api_datasource.createRow(x1v);
          x1v := panel.dsource || '.' || panel.pkItem; -- x1v = Panel Name + . + primary key item
          --  api_application.showpopupmessage('PKItem = ' || x1v);
          api_datasource.setColumnValue(x1v,0,x1n);
          null;
       end;

Anybody can tell me what its wrong here?

asked 19 Sep, 13:45

JoseBenitez's gravatar image

JoseBenitez
4113
accept rate: 16%

edited 19 Sep, 14:15

Yalim's gravatar image

Yalim ♦♦
2.8k5


Hi Jose,

Each datasource has a current row indicator. You have to set the current row of your datasource to the new row you created using the API api_datasource.setCurrentRow

The x1n is the internal Row ID of your new row. So use that to set the current row of datasource to your new row.

Hope this helps.

Kind Regards,
Yalim

link

answered 19 Sep, 14:19

Yalim's gravatar image

Yalim ♦♦
2.8k5
accept rate: 20%

Each datasource has a current row indicator. You have to set the current row of your datasource to the new row you created using the API api_datasource.setCurrentRow

The x1n is the internal Row ID of your new row. So use that to set the current row of datasource to your new row.

link

answered 20 Sep, 12:30

JoseBenitez's gravatar image

JoseBenitez
4113
accept rate: 16%

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:

×19
×5

Asked: 19 Sep, 13:45

Seen: 139 times

Last updated: 20 Sep, 12:30


© Copyright Gerger 2017