‎20-09-2019 12:50 PM
Hello ,
I am trying to use getselection in c# code but it's failing during runtime .
does any one have any idea how to use getselection method from c# code .
the sample query which i am using is
oRoot.GetSelection["select [MetaClass] where [Creator]= ' " +userName + " ' "] ;
Could some one please help me on this.
The query is failing at runtime execution
‎20-09-2019 03:32 PM
‎20-09-2019 03:26 PM
What value do you put in "creator" ?
In Hopex there are 2 fields :
creator : the absolute identifier
creator name : the label of the user
Have you tried your query within HOPEX first to see if it works ?
‎20-09-2019 02:51 PM
‎20-09-2019 02:49 PM
‎20-09-2019 01:54 PM
Hello,
Have you succedded in running a more basic query like : "SELECT [Application]" ?
The getSelection need in some context 2 parameters :
* the query : SELECT [Application]
* the filter/sorter : "ShortName"
oRoot.GetSelection[query,filter];
Look at this post where someone had the problem https://community.mega.com/t5/Customization-Guru/API-JAVA-Generate-Website-Issue/m-p/20198