Hi

It seems something simple, but how can I clear a panel? I have a panel with a combobox that fill all fields when his value changes. If I change to another panel and get back the old values remained.

Thanks a lot Ricardo

asked 16 Oct '13, 07:59

Ricardo's gravatar image

Ricardo
11117
accept rate: 0%


I would create something like this:

CREATE OR REPLACE PROCEDURE clear_fields
IS
BEGIN
   FOR i in 1..5 LOOP
      CASE i
         WHEN 1 THEN
            Api_Component.SetValue( 'testPanel.textField1', null );
         WHEN 2 THEN
            Api_Component.SetValue( 'testPanel.textField2', null );
         WHEN 3 THEN
            Api_Component.SetValue( 'testPanel.textField3', null );
         WHEN 4 THEN
            Api_Component.SetValue( 'testPanel.textField4', null );
         WHEN 5 THEN
            Api_Component.SetValue( 'testPanel.textField5', null );
      END CASE;
   END LOOP;
END;

I think that would work.. I know, that is kind of manual, but I don't know about any solution offered by FS to automatically clear a panel or even textField..

link

answered 16 Oct '13, 08:34

Mazzel's gravatar image

Mazzel
31114
accept rate: 0%

edited 16 Oct '13, 08:34

Hi Ricardo,

You can't clear a panel but you can clear data sources used in a panel using api_datasource.clear. This will clear all the items on the panel bound to the specified datasource. Any component that is not bound, you need to set to null using api_component.setValue(tx/nr/dt)

link

answered 16 Oct '13, 10:17

Yalim%20Gerger's gravatar image

Yalim Gerger ♦♦
1.8k5
accept rate: 15%

Mazzel and Yalim

In this case I am not using any datasource, so I need to clear field by field.

Thanks all for your replies Ricardo

link

answered 16 Oct '13, 10:38

Ricardo's gravatar image

Ricardo
11117
accept rate: 0%

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:

×34
×3

Asked: 16 Oct '13, 07:59

Seen: 1,339 times

Last updated: 16 Oct '13, 10:38


© Copyright Gerger 2017