Hi Chris,

thanks for your help. With the "#require" the class was found and the
detail window was opened.

The "#require" is a break in my generic baseclass but the solution works.
That's the main.

Regards

Lutz


Christian Schmidt schrieb:
> Hi Lutz,
>
> you have to inform the generator for using the class (it's needed for 
> dependence analysis), you can do this by using:
> #require(de.domain.LanguageTable)
>
> in the generator section from the class that calls this:
> var clazz = qx.Class.getByName("de.domain.LanguageTable");
> var obj = new clazz();
>
> Cheers,
> Chris
>
> Lutz Schoder schrieb:
>   
>> Hi Bryan,
>>
>> sorry, but it was not the solution for my problem.
>>
>> First I tested it with a class with already created objects and it 
>> works. But in the application
>> a table view has to open a detail view which was given by classname. 
>> This detail view
>> was normally not created before.
>> This behavior should be implemented generic in the base class. And in 
>> this case the
>> qx.Class.getByName(<String>) returns with "undefined". But the classname 
>> is correct.
>>
>> Do you have a further hint for me?
>>
>> Thanks.
>>
>> Lutz
>>
>>
>> Lutz Schoder schrieb:
>>   
>>     
>>> Hi Bryan,
>>>
>>> thank you very much. The brackets are the missing link.
>>>
>>> Lutz
>>>
>>>
>>> Bryan Coutch schrieb:
>>>     
>>>       
>>>> var clazz = qx.Class.getByName("de.domain.LanguageTable");
>>>> var obj = new clazz();
>>>>
>>>> -----Original Message-----
>>>> From: Lutz Schoder [mailto:[email protected]] Sent: Monday, May 
>>>> 04, 2009 10:18 AM
>>>> To: qooxdoo Development
>>>> Subject: [qooxdoo-devel] new Instance from String
>>>>
>>>> Hi All,
>>>>
>>>> I'm searching for a classForName()-like way to create an object from 
>>>> a string:
>>>>
>>>> var clazz = "de.domain.LanguageTable";
>>>> var obj = <methodname>(clazz);
>>>>
>>>> The qx.Class.getByName() seems not be the correct way. Knows someone a
>>>> solution?
>>>>
>>>> Thanks
>>>>
>>>> Lutz
>>>>
>>>>   
>>>>       
>>>>         
>>>     
>>>       
>>   
>>     
>
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
> Series Scanner you'll get full speed at 300 dpi even with all image 
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>   


-- 
Mit freundlichen Grüßen / Best regards

Lutz Schoder

SoftConcept GmbH
Borriesstr. 35
D-32257 Bünde
www.softcontract.de
www.softconcept.net

Amtsgericht Bad Oeynhausen, HRB 8162
Steuernummer 310/5786/0202
Geschäftsführer: Jürgen Tiemann


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to