Dear all,

How can I get the name of the currently focused tabpage name? I tried to use posttabchanged event in my tabbed panel. But it gives the name of the tabpage from which I changed and not the newly focused tabpage name.

George.

asked 26 Nov '13, 01:53

grajan777's gravatar image

grajan777
1011235
accept rate: 10%


Hi George,

You may use the API api_tabbedPanel.getCurrentTabName

api_tabbedPanel.getcurrenttabname('MyTabbedPanel1');

Kind Regards,
Yalim

link

answered 26 Nov '13, 07:06

Yalim%20Gerger's gravatar image

Yalim Gerger ♦♦
1.8k5
accept rate: 15%

Hi Yalim,

Thank you for your answer. But I am not able to get it. I want to know the name of the tabpage I clicked/changed to. I tried the click action of tabpage. In the related procedure I tried to find the tabpage name using your code as : api_application.showpopupmessage(api_tabbedPanel.getcurrenttabname('CM_MENU_MAIN_TAB')); But the click action is not firing at all.

Please help to find the name of the clicked tab.

George

(26 Nov '13, 08:52) grajan777

Hi George, If you use your code in the following manner it should work:

<tabbedPanel name="MyTabbedPanel1">
  <events>
    <postTabChanged action="action1"/>
  </events>
</tabbedPanel>

Then in the PL/SQL code of the action1 call:

api_tabbedPanel.getCurrentTabName('MyTabbedPanel1');

This should work.

Kind Regards,
Yalim

link

answered 26 Nov '13, 08:59

Yalim%20Gerger's gravatar image

Yalim Gerger ♦♦
1.8k5
accept rate: 15%

Hi Yalim,

Thank you for your prompt answer. I already tried the code and tried again after your answer. The TabPageChaged action is firing but the tabpage name is missing.

Regards.

George.

(26 Nov '13, 09:13) grajan777

interesting. i copied the snippet from our code base. let me verify that there is indeed an issue and i will get back to you.

(26 Nov '13, 09:14) Yalim Gerger ♦♦

Hi Yalim,

Just one more that goes with it.

For this to become practically workable I need one more thing. The name of the TabbedPanel where my tabpage is sitting as I need it to send it with api_tabbedPanel.getCurrentTabName('...'); Consider, I have three TabbedPanels. The user may click any tabpage in any of these TabbedPanels. Since I do not know the TabbedPanel name of the tabpage he clicked I will not be able to issue the command api_tabbedPanel.getCurrentTabName('...'). Hope you have a solution for this as well.

George.

(26 Nov '13, 09:25) grajan777

Hi George,

I cannot reproduce the issue here on Formspider 1.6. It works the way I described above. If you can create a sample app which replicates the problem and send it to me, I can take a look at what the issue might be.

(26 Nov '13, 09:51) Yalim Gerger ♦♦

Hi George,

Regarding your last comment: You can build a generic code using the

api_application.getEvent API.

You can find more about this API at this link: http://theformspider.com/API/api_application.html#getevent

You can find more about the record type this API returns at this link: http://theformspider.com/API/api_event.html#t_event(varchar2(200),varchar2(200),varchar2(255),varchar2(4000),varchar2(255))

(26 Nov '13, 10:22) Yalim Gerger ♦♦

Hi Yalim,

This is a very big relief and good news. Actually I could not sleep after knowing that I have to write procedures for all my 250 main screens which all contain TabbedPanels. Further, my fear increased by the thought of having to maintain and debug (if any error occurs) all these 250 procedures. And all this point to an increased cost of the final product which will make it difficult to sell in a competitive market. As my sleep was disturbed I got up early at 4 am (though I went to sleep at 1 am) and that is when I saw your above comment. Now I feel very relaxed and happy. Thanks. Actually the way to go in development is to go generic wherever possible. Though bit difficult initially the end result will justify the initial difficulty. What you can do from your side is to provide APIs for all the features in the system, if possible.

As for api_tabbedPanel.getCurrentTabName, I am sending a sample application and video of running it separately. I tried with Chrome and Internet Explorer. Both has the same results.

George.

(26 Nov '13, 21:57) grajan777
showing 5 of 6 show 1 more comments
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:

×1

Asked: 26 Nov '13, 01:53

Seen: 1,353 times

Last updated: 26 Nov '13, 21:57

Related questions


© Copyright Gerger 2017