This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Jun 21, 2011, 10:23 AM
1 Posts

Submit, edit, canel, close buttons for 3 tabs with view forms

  • Category: Other
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: Submit,edit,canel,close buttons
  • Replies: 2
Hi everyone! I'm new to X- pages and this forum. I have a problem in the app I'm working at hte moment. I'm trying to make 4 buttons (Submit, edit, canel, close buttons) for my tabbed panel. I know how to make the buttons work if I put them on every single tab, but I want them to work on all the tabs at once (place them above the tabbed panel). The app works on one form. Any help / advise appreciated :) Thx!
Jun 22, 2011, 5:18 AM
54 Posts
Re: Submit, edit, canel, close buttons for 3 tabs with view forms
Maybe I missunderstood your problem, but why don't you just put the buttons outside of the tabbed control like above it? By that the buttons are always visible / accessible in every  tab. Is this what you were looking for / asking?
Jun 22, 2011, 9:23 PM
47 Posts
Re: Submit, edit, canel, close buttons for 3 tabs with view forms
Just to be sure, you have multiple "forms" on tabs, each with its own dataSource and you want to have one set of buttons acting on several dataSources?
 
As far as I know, you will have to define the dataSources in some ancestor of the buttons. Then in the onclick event of the button you will have to compute which dataSource is active (which tab is open) and pass that as the "var" parameter of the saveDocument simple action. I haven't used the var parameter yet, that info is from Mastering Xpages, so you may have to play with that. Your script _could_ just call the save method of the dataSource, but I don't recommend that as it seems to bypass any defined querySave or postSave events. 
 
Rich 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal