Jump to content
  • 0

Open datapage with dual functionality


BFuchs

Question

Hi,

 

How do I create a single datapage that will be used for adding and editing a record as well.

Meaning, when user clicks on a link (from another datapage) to open this datapage, if it does not have an existing record yet, it should be ready to add the record, otherwise if record exists, it should bring up that record with option to edit.

How is that possible?

PS. Or at least is it possible to set the datapage allow additions to false in case there are records?

 

Thanks

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Hi @BFuchs,

I can suggest the following:

1. Create Details/Single record update DP and use it as a link in on your another datapage.

2. Don`t forget to put a parameter (unique identifier of a record) at the end of link.

3. Create a Submission DP to submit a record.

4. Create a new Localization with a simple JS i.o. "No records found" message.

JbCPzvT.png

Hope this helps.

Regards,

vitalikssssss

 

Link to comment
Share on other sites

  • 0

Hi @BFuchs

9 hours ago, BFuchs said:

So if there is no record yet, user will have to click twice, first on the link to open update DP and then on the link to open Submission DP?

No, user will be routed automatically to the Submission Form.

9 hours ago, BFuchs said:

In addition of trying to use the least datapages possible.

User does not have to click second time.

9 hours ago, BFuchs said:

My goal here is to have the user click it only once

I doubt that it will be possible. You may customize Tabular report with inline insert, however it will require some sophisticated JS code to cover all possible scenarios.

Regards,

vitalikssssss

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...