on 2018 Sep 19 4:44 PM
I transformed the tinyworld example to Cloudfoundry and it works so far. Now I changed a small portion and do not get why this does not work:
I added a xsodata file that works simply on a table and this never works. Here is the content that works:
service {
"tinyworld3.tinydb::myview" as "euro" keys generate local "ID";
}
And here is the one that does not work:
service {
"tinyworld3.tinydb::world" as "world" keys generate local "ID" ;
}
I also can keep out the "keys generated local ID" part.
When calling this, I always get a
"No data found for tinyworld3.tinydb::world table."
Anybody has an idea why that is?
Found the solution:
to call just a table I need schema name AND table as this:
service {
"tinyworld3.tinydb::myview" as "euro" keys generate local "ID";
"tinyworld3.tinydb::tinyf.world" as "world" ;
}
So now the view works and the table too.
Thanks for trying to help!
With kind regards,
Benny
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gregor,
as I used WebIDE it looks a little bit different, but that should be only for the editor:
namespace tinyworld3.tinydb;
context tinyf {
/*@@layout{"layoutInfo":{"x":-135,"y":-41}}*/
entity world {
key continent : String(100);
};
/*@@layout{"layoutInfo":{"x":-405,"y":-139.5}}*/
entity country {
name : String(100);
part_of : association[0..1] to world { continent };
};
};
Regards,
Benny
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
are you able to query this table from your sql console? if so, then have you tried copying the name of that table as is from your sql console.. as you already know, make sure there is a key defined for the table.
does you table have data? if not, add a simple record just to test it out.
alternatively, create a separate xsodata file and try again with a simple example and the build up from there
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.