Page 5 of 13

More Detail on using the select menu

Posted: Sun Aug 10, 2014 9:05 pm
by obullei

Hello!

We are working on it.
It need some time. Thank you for your patience.


More Detail on using the select menu

Posted: Mon Aug 11, 2014 2:02 am
by Yurii Orishchuk

Hi Eascards,

Here is your mistake:

In "delete" service you have wrong URL.

pre

{{database_url}}/collections/Calf_data/{_id}

/pre

Should be:

pre

{database_url}/collections/Calf_data/{_id}

/pre

see details: http://appery.io/app/view/016e7e97-64...

So fix it and you will get it work.

Regards.


More Detail on using the select menu

Posted: Tue Aug 12, 2014 1:37 am
by eascards

I think this is for the wrong topic.


More Detail on using the select menu

Posted: Tue Aug 12, 2014 2:14 am
by Yurii Orishchuk

HI eascards,

At first you need to understand whether correct bookId stored in the lsv.

Please use following code:

pre

var bookId = localStorage.getItem("bookid");

//Note you need to see in this alert CORRECT book id. If you have wrong book id you need to pass in this LSV correct value.
alert("stored bookId = " + bookId);

/pre

Also if you don't know what is bookid, you need to pass this tutorial to make it clear.

http://devcenter.appery.io/tutorials/...

Regards.


More Detail on using the select menu

Posted: Tue Aug 12, 2014 10:05 pm
by eascards

I believe it is storing the correct id because what ever I select appears in the pop up on the search page. I don't know if it matters but it says the book name not the _id that appery automatically assigns.

If this is the way it is supposed to be, to I still need to worry about this? Image


More Detail on using the select menu

Posted: Wed Aug 13, 2014 1:51 am
by Yurii Orishchuk

Hi Eascards,

This alert should show you exactly the same _id that's you clicked on.

So at first you need to debug your app in this way to correctly show this _id in allert.

Regards


More Detail on using the select menu

Posted: Wed Aug 13, 2014 2:57 am
by eascards

So how should I go about doing this: Image


More Detail on using the select menu

Posted: Wed Aug 13, 2014 4:50 am
by Yurii Orishchuk

At first you need to store "_id" for futher use.

http://prntscr.com/4cawmv/direct

You can find how to do it in this tutorial http://devcenter.appery.io/tutorials/...

Regards.


More Detail on using the select menu

Posted: Wed Aug 13, 2014 5:00 am
by eascards

Is this the part of the tutorial that I should use? Image

If so, I am not quite sure about steps 3.1, 4.1, and 4.3.
Correct me if i'm wrong but 3.1 should be the select menu.
4.1 I create my own name for it?
4.3 Do I need to create an invisible label that holds the book _id?


More Detail on using the select menu

Posted: Wed Aug 13, 2014 10:41 pm
by Yurii Orishchuk

Hi Eascards,

3.1 - you should select here your "delete" button.

4.1 - yes, you can use something like "cowId"

4.3 - yes you need to have in your list component this component that's should be populated with itemid("_id" response property).

If you want to understand how to implement it please pass this whole tutorial.

You can create separate page and follow step by step given tutorial.

Then when you will get it work you can compare with your current implementation.

Regards.