Hi All,
I installed LabKey from LabKey11.3-18455-Setup_includeJRE.exe
I'm using IE8
I'm new to LabKey and I'm having a problem getting the example Reagent_project running. The call:
LABKEY.Query.selectRows({
schemaName: 'Reagent_project',
queryName: 'Reagent',
containerPath: 'Reagent_project',
successCallback: populateReagents,
failure: onFailure
});
Goes to the onFailure function which prints:
"errorInfo.exception: Not Found"
So I think one or more of these parameters are wrong: schemaName, queryName, containerPath.
I don't know what values I should use to make it right. The queryName is the table name which I think is right but I'm not confident and I have less confidence in the others. I have tried other values that seemed like they could be right but I have had no luck. Lack of knowledge and understanding are the underlying problem. I hope someone with more of those can tell by looking at the information I have included and tell me what values I should use and perhaps a brief explanation of why. I've been reading the documentation but I'm not quite getting it. Thank you very much for any help you might be able to give.
On the left of my window I have:
+ PROJECTS
Reagent_project
...
When I double click Reagent_project I go to a web page that says:
Reagent_project
Lists
Reagent
Reagent_Requests
MANAGE LISTS>
Reagent Request Form
...
The Form attemts to initialize itself and I see all of my alerts telling me where the program thread is and I finaly get to the onFailure function.
The not completely filled in form is in the "Reagent Request Form" box, it has Name and E-mail correct, UserID=1001 Reagent=Loading..., Quantity=1, Comment are empty and the Submit button is there.
When I go to Admin->Manage Lists is see:
Reagent_project
Available Lists
User defined lists in this folder.
Reagent VIEW DATA> ...
Reagent_Requests VIEW DATA> ...
When I go to the Query Schema Browser is see on the left:
Schemas in labkey
...
lists
built-in queries & tables
Reagent
Reagent_Requests
...
In the Query Schema Browser on the right under lists is see:
Lists Schema
Contains a data table for each defined list
Built-in Queries and Tables
Name Description
Reagent
Reagent_Requests |
|
jeckels responded: |
2012-02-20 15:17 |
Hi James,
I think you're on the right track here about the potentially incorrect values.
The containerPath value should match the name of your project, and it looks like it does. I think it should work as-is, but if you're using your UI inside of that project, you can omit the value completely. It will default to the current container. If you want to keep it there, I'd suggest prefixing it with a leading slash - containerPath: '/Reagent_project'.
The queryName matches up with your list name "Reagent", so that looks good.
I suspect your issue is from the schemaName you're using. Try switching it to "lists", which is where you've found your Reagent query in the Query Browser.
Thanks,
Josh |
|
James responded: |
2012-02-21 06:13 |
Thank you very much for looking at this problem for me. The schemaName was an issue, as you said, it needs to be lists. I had tried it set to lists before and it didn't work so I tried something else. What finally worked was deleting my lists and recreating them. Now LabKey can find them. I wanted to delete the entire project but I didn't see a command for doing that. |
|
Ben Bimber responded: |
2012-02-21 07:37 |
hi james,
sounds like you're past this, but if in the future you ever need to delete a project or folder, you can do the following:
If you have 11.3 or earlier:
- click the admin menu (top-right of page)
- click 'manage project'
- click 'manage folders'
- from here you can delete folders, move folders or create subfolders. this is a little hidden.
In starting in 12.1 (not yet released) we revamped the folder management pages. when you have this version, just click the admin menu, then 'project', then 'management'. there will be a 'delete folder' link on that page. |
|
|
|