• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Interaction with web app items.

New Here ,
Sep 12, 2014 Sep 12, 2014

Copy link to clipboard

Copied

Hi all, I've been building a "Ride board for students", type Web App, and I'm running into an issue. I have everything else working (Ish) so that a driver or a passenger can post a trip. This means he puts the details of his trip (Portland to Eugene) and then another student comes by and sees that they are going the same way. What I need is a way for the another student to be able to accept that trip listed by the driver or passenger. I would like to have a "accept" button just under each web apps item in the "List of web app items" so that when someone sees a trip they like or can use, the click the "Accept" button and the system emails the driver and the passanger the trip detail and then disables the web app item so that it's not in the list anymore. Is any of this possible? and if so, I would love to learn how. Any sugestions are appretiated. Many thanks in advance.

TOPICS
Web apps

Views

558

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 12, 2014 Sep 12, 2014

Copy link to clipboard

Copied

You can do the emails with web forms ajax etc but you can not automatically disable or remove the web app item. The person that posts the trip will need to do that. The web app item is under their ownership so only either via the admin or by themselves logging in and editing can you disable them.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 19, 2014 Sep 19, 2014

Copy link to clipboard

Copied

Option1) With this option you can have someone "accept" the trip and it disable the webapp item. You make sure in the webapp setup you have "anyone can edit" and "requires approval" checked. Now, when someone checks the button,  which actually edits the item, it will disable it automatically. However, this is assuming that all items are already created. What I mean is, initially, when the item is created, it does not show and someone on your staff has to go in and "enable" the item before it will display on the site. But, maybe this is enough info to get you thinking. And you can find a workaround.

option 2) There is another (not so desirable) way that would "appear" to do what you need. You need to have an extra field(preferably a checkbox field) in your webapp item that when the button is clicked, it will also "check" this field. This field is placed in the layout as a "class" or data attribute. So then you could {display:none} If this class exists. For instance... you have a container in your list/detail view <div class="wrapper accepted{tag_accepted}">content here</div>. So then your css would be .accepted1{display:none;}. Also, in your webapp setup, make sure you check "anyone can edit"

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 20, 2014 Sep 20, 2014

Copy link to clipboard

Copied

Option 1 note: Your missing the key thing. Even when you mark "Anyone can edit" - This is anyone who is logged in.

option 2 note: This wont work

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 20, 2014 Sep 20, 2014

Copy link to clipboard

Copied

Option 1: This will work. Obviously, the user who wants to accept the trip would have to login to do so, but it works and is a solution. The only issue is the site owner will have to "approve" all trip submissions within the backend. However, when different user comes along and "accepts" the trip, then this will automatically disable it.

Option2: Yes it will. I have done this. Again, the user would have to be logged in though.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 20, 2014 Sep 20, 2014

Copy link to clipboard

Copied

I have to ask if you have done both?

If you have you will know the theory vs how BC works is a bit different in both those cases

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 20, 2014 Sep 20, 2014

Copy link to clipboard

Copied

Hey Liam, Yes, I have actually done both. Again, the first option requires someone to approve each trip that gets submitted. But, when someone edits/Accepts it (has to be logged in) It will get disabled. The second one loads all of the items, but hides the "accepted ones" with css. (again person has to be logged in). So, may not be the ultimate solution, but it is something to work with and expand on.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 20, 2014 Sep 20, 2014

Copy link to clipboard

Copied

Also wanted to point out the theory and how BC works. Yes, with a little outside the box thinking, things are possible in BC that even BC doesn't know about.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 21, 2014 Sep 21, 2014

Copy link to clipboard

Copied

Just there are two known bugs that wont cause them to work well. I know what your saying, but the login aspect and these makes it not a rock solid solution, and also the edit all concept with the control for me in the past has also been very ropey for clients in terms of real world use. For me I put a big focus on how something will work in the real world and think through it very carefully.

Yep taking in account they login - yep as a developer scope they are solutions. option 1 is the better option, but option 2 for me does not really work well in that real world scope.

That is all I am saying Your not wrong, just not my ideals. I think though we may fine the original poster was not looking for the having to login option. which leads you to the stealth login method which then falls for the two options, which in a core sense again does work but has problems

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 25, 2014 Oct 25, 2014

Copy link to clipboard

Copied

LATEST

Hey everybody, thank you for your replies. I'm working on it now with what you guys told me. I'll give you an update if I can figure it out.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines