Jump to content
  • 0

Use 1 Datapage And 1 Table For Both Logged-In And Unlogged-In User?


jlundy

Question

I have "user_table" and "item_table" and both have the field "user_id" which is unique in "user_table" but not in "item_table".

 

I have "sell_item_datapage" which was going to require auth for members.

 

**How can I allow both logged-in users and unlogged-in users to submit an item to sell?**

 

Do I need 2 datapages?  

 

Also, do you think I need an additional table or additional fields?

 

Thanks,

Jason

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hello Jason,

 

Welcome to Caspio forum!

 

As far as I know, it is better to use two DataPages, one with an Authentication and another without it.

You can use the default user, for example, "guest" and display default login-password under Login fields, but I am not sure that it is the best idea.

 

If all items are sell together, I mean, it is not important for a buyer who sells an item (an authenticated user or not), I would like to recommend you to use one table.

 

If you want to work separately with both kinds of items, you can create Views that filter items by the "user_id" field - "is blank" and "is not blank" correspondingly.

 

I hope, it helps.

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...