0

I have an Xpage with a custom control that has a tabbed control on it. When I edit the first tab and save it. I duplicate document shows up in the view. As far as I can tell the duplicate document is identical to the original, including the saved changes. Why is this happening? The onclick event of the Save button does an Open Page with a target action of Edit Document.

Any suggestions would be appreciated.

MJ

Mike Jackson
  • 427
  • 4
  • 18

2 Answers2

1

If the button type is Submit that saves all datasources on the page. My advice would be to never use that type of button. You rarely want to save all datasources, even those a future developer may add. You usually want to save a specific datasource. So use the relevant method (e.g. document1.save()) to do so on a button of type Button. This will stand you in better stead going forward.

Paul Stephen Withers
  • 15,699
  • 1
  • 15
  • 33
  • That worked. Thank you so much. There are 10 tabs in that custom control and this is the only one with multiple data sources. This was a simple fix and easy for me to understand. Again, thanks. – Mike Jackson Jun 21 '16 at 13:33
0

I think you may have multiple datasources on your page. Have you checked out this question?

Possible Duplicate

Community
  • 1
  • 1