obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

More Detail on using the select menu

Hello!

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

More Detail on using the select menu

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.

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

More Detail on using the select menu

I think this is for the wrong topic.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

More Detail on using the select menu

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.

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

More Detail on using the select menu

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

More Detail on using the select menu

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

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

More Detail on using the select menu

So how should I go about doing this: Image

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

More Detail on using the select menu

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.

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

More Detail on using the select menu

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?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

More Detail on using the select menu

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.

Return to “Issues”