Hi. I wanna check is tab name is used before getting this message "Tab name "Modules" has already been used."

asked 28 Oct '12, 06:11

lezgin's gravatar image

lezgin
71421
accept rate: 0%


Hi Zamir,

As the first option, you can catch the e_tabNameExists exception when it's raised from your API;

procedure myProc is
begin
  ...
  api_tabbedPanel.yourAPI(...);
  ...
exception
  when api_exception.e_tabNameExists then
    ...
end;

Currently, Formspider does not provide a built-in API which checks whether a tab with the given name exists or not. But as the second option, you can implement your custom checker function as;

function isTabNameUsed(in_tabbedPanelName_tx varchar2, in_tabName_tx varchar2) return varchar2 is
  v_visible_yn varchar2(1);
begin
  v_visible_yn := api_tabbedPanel.istabvisible(in_tabbedPanelName_tx ,in_tabName_tx);
  -- tab with the given name exists since e_invalidTabName exception is not raised
  return 'Y';
exception
  when api_exception.e_invalidTabName then
    return 'N';
end;

Hope this helps, Ibrahim

link

answered 28 Oct '12, 06:46

Ibrahim%20Sandalli's gravatar image

Ibrahim Sand... ♦♦
1.5k5
accept rate: 25%

I checked. it is OK. Thank you Ibrahim.

link

answered 28 Oct '12, 07:07

lezgin's gravatar image

lezgin
71421
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:

×15

Asked: 28 Oct '12, 06:11

Seen: 1,069 times

Last updated: 28 Oct '12, 07:07


© Copyright Gerger 2017