reference [message #842427] |
Thu, 12 April 2012 09:33 |
|
Salt guys let me know how I can refer Hadu my object (myclass) will place you one example:
model:
query = query;
query:
'SELECT' dbobject;
dbobject:
list = [jvmTypes:: jvmTypes list my items]
;
In pretica I wish that with ctrl-space appeared to me a list of my items to choose from.
Thanks in advance
|
|
|
|
Re: reference [message #843664 is a reply to message #842865] |
Fri, 13 April 2012 08:52 |
|
Hi Christian
The thing I need is that when I use ctrl-space my rule Name consists of a list of names (string) including an order choosing. The list must be external to the grammar seen that with my editor, I can connect to several db, so this list will be different every time. I give the idea with this example:
I connect to the db Gianluca:
Model:
query = query;
Query:
'SELECT' dbobject;
Dbobject:
list = [:: jvmTypes jvmTypes list my items]
in this case, when I'm going to use the editor
by ctrl-space will I display the list of db table
Gianluca then choosing a:
as {
Name
Age
Work
}
once you press enter on the job I will have "SELECT job"
;
I connect to the db Christian:
Model:
query = query;
Query:
'SELECT' dbobject;
Dbobject:
list = [:: jvmTypes jvmTypes list my items]
in this case, when I'm going to use the editor
by ctrl-space will I display the list of db table
Chrisrian certainly with elements other than those of db
Gianluca including choosing a
as {
People
Employees
Salary
}
once you press enter on People I "SELECT People"
;
In other words I want the rule dbobject have to fill a container with shakes or objects outside the grammar.
Can I do this? or is there a method to return a list java? Reading the tutorial that I did not understand a lot ....
Thanks in advance.
|
|
|
|
Re: reference [message #843708 is a reply to message #843700] |
Fri, 13 April 2012 09:44 |
|
you will excuse me, I know we say that instead of jvmTypes there is
list = [listTables]
list table should be a dynamic container in which to inject each time different squeezes that are no more than names tables forming part of a Db ..
I hope I was clear ......!!
I'm sorry again.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07063 seconds