Retrieving HopObject by accessName

View: New views
6 Messages — Rating Filter:   Alert me  

Retrieving HopObject by accessName

by Anton Pirker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi List!

It seems that i have more and more problems doing the really basic
things in Helma..


I have a Prototype Admin with this collection in the type.properties:

--Admin/type.properties--
industriesByName       = collection(Industry);
industries.accesssName  = industry_name


now i want to get an industry by its name like this:

--Admin/actions.js--
function main_action() {
     var ind = this.industriesByName.get("Information Technology");
}


and no matter if there is a "Information Technology" line in the
database, the .get() call always returns null...


I have done this a gazillion times, but now it does'nt work anymore...
Maybe i am blind. What i am i doing wrong?


Thanks in advance,
Anton

--
DI(FH) Anton Pirker
Helma Freelancer

http://www.ignaz.at
http://shnitzl.org

_______________________________________________
Helma-user mailing list
Helma-user@...
http://helma.org/mailman/listinfo/helma-user

Re: Retrieving HopObject by accessName

by Anton Pirker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I forgot:

My Helma version is:  Helma 1.7.0-pre (July 1 2008)
(maybe i should change to a stabel 1.6.2)



Anton Pirker wrote:

> Hi List!
>
> It seems that i have more and more problems doing the really basic
> things in Helma..
>
>
> I have a Prototype Admin with this collection in the type.properties:
>
> --Admin/type.properties--
> industriesByName       = collection(Industry);
> industries.accesssName  = industry_name
>
>
> now i want to get an industry by its name like this:
>
> --Admin/actions.js--
> function main_action() {
>      var ind = this.industriesByName.get("Information Technology");
> }
>
>
> and no matter if there is a "Information Technology" line in the
> database, the .get() call always returns null...
>
>
> I have done this a gazillion times, but now it does'nt work anymore...
> Maybe i am blind. What i am i doing wrong?
>
>
> Thanks in advance,
> Anton
>


--
DI(FH) Anton Pirker
Helma Freelancer

http://www.ignaz.at
http://shnitzl.org

_______________________________________________
Helma-user mailing list
Helma-user@...
http://helma.org/mailman/listinfo/helma-user

Re: Retrieving HopObject by accessName

by Walter Krivanek, VividVisions :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

if you copied your type.properties from the original file, the your  
problem is the spelling.

coll=collection(proto)
coll.accessname=name

not

coll=collection(proto);
coll.accesssName=name

Bye,
Walter


Anton Pirker (30.07.2008 10:43):

> Hi List!
>
> It seems that i have more and more problems doing the really basic
> things in Helma..
>
>
> I have a Prototype Admin with this collection in the type.properties:
>
> --Admin/type.properties--
> industriesByName       = collection(Industry);
> industries.accesssName  = industry_name
>
>
> now i want to get an industry by its name like this:
>
> --Admin/actions.js--
> function main_action() {
>     var ind = this.industriesByName.get("Information Technology");
> }
>
>
> and no matter if there is a "Information Technology" line in the
> database, the .get() call always returns null...
>
>
> I have done this a gazillion times, but now it does'nt work anymore...
> Maybe i am blind. What i am i doing wrong?
>
>
> Thanks in advance,
> Anton
>
> --
> DI(FH) Anton Pirker
> Helma Freelancer
>
> http://www.ignaz.at
> http://shnitzl.org
>
> _______________________________________________
> Helma-user mailing list
> Helma-user@...
> http://helma.org/mailman/listinfo/helma-user
>

_______________________________________________
Helma-user mailing list
Helma-user@...
http://helma.org/mailman/listinfo/helma-user

Re: Retrieving HopObject by accessName

by Rainer Rynesch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

 in the first line of your type.properties
> industriesByName
In the second line _only_
> industries

 

> -----Ursprüngliche Nachricht-----
> Von: helma-user-bounces@...
> [mailto:helma-user-bounces@...] Im Auftrag von Anton Pirker
> Gesendet: Mittwoch, 30. Juli 2008 10:44
> An: Helma User Mailing List
> Betreff: [Helma-user] Retrieving HopObject by accessName
>
> Hi List!
>
> It seems that i have more and more problems doing the really
> basic things in Helma..
>
>
> I have a Prototype Admin with this collection in the type.properties:
>
> --Admin/type.properties--
> industriesByName       = collection(Industry);
> industries.accesssName  = industry_name
>
>
> now i want to get an industry by its name like this:
>
> --Admin/actions.js--
> function main_action() {
>      var ind = this.industriesByName.get("Information Technology");
> }
>
>
> and no matter if there is a "Information Technology" line in the
> database, the .get() call always returns null...
>
>
> I have done this a gazillion times, but now it does'nt work anymore...
> Maybe i am blind. What i am i doing wrong?
>
>
> Thanks in advance,
> Anton
>
> --
> DI(FH) Anton Pirker
> Helma Freelancer
>
> http://www.ignaz.at
> http://shnitzl.org
>
> _______________________________________________
> Helma-user mailing list
> Helma-user@...
> http://helma.org/mailman/listinfo/helma-user
>
_______________________________________________
Helma-user mailing list
Helma-user@...
http://helma.org/mailman/listinfo/helma-user

Re: Retrieving HopObject by accessName

by Anton Pirker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Walter!

It was really a typo!

As soon as you do something right, it really works. Astounding. ;)


Thanks!
Anton



Walter Krivanek, VividVisions wrote:

> Hi,
>
> if you copied your type.properties from the original file, the your  
> problem is the spelling.
>
> coll=collection(proto)
> coll.accessname=name
>
> not
>
> coll=collection(proto);
> coll.accesssName=name
>
> Bye,
> Walter
>
>
> Anton Pirker (30.07.2008 10:43):
>
>> Hi List!
>>
>> It seems that i have more and more problems doing the really basic
>> things in Helma..
>>
>>
>> I have a Prototype Admin with this collection in the type.properties:
>>
>> --Admin/type.properties--
>> industriesByName       = collection(Industry);
>> industries.accesssName  = industry_name
>>
>>
>> now i want to get an industry by its name like this:
>>
>> --Admin/actions.js--
>> function main_action() {
>>     var ind = this.industriesByName.get("Information Technology");
>> }
>>
>>
>> and no matter if there is a "Information Technology" line in the
>> database, the .get() call always returns null...
>>
>>
>> I have done this a gazillion times, but now it does'nt work anymore...
>> Maybe i am blind. What i am i doing wrong?
>>
>>
>> Thanks in advance,
>> Anton
>>
>> --
>> DI(FH) Anton Pirker
>> Helma Freelancer
>>
>> http://www.ignaz.at
>> http://shnitzl.org
>>
>> _______________________________________________
>> Helma-user mailing list
>> Helma-user@...
>> http://helma.org/mailman/listinfo/helma-user
>>
>
> _______________________________________________
> Helma-user mailing list
> Helma-user@...
> http://helma.org/mailman/listinfo/helma-user


--
DI(FH) Anton Pirker
Helma Freelancer

http://www.ignaz.at
http://shnitzl.org

_______________________________________________
Helma-user mailing list
Helma-user@...
http://helma.org/mailman/listinfo/helma-user

Re: Retrieving HopObject by accessName

by Hannes Wallnoefer-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2008/7/30 Anton Pirker <helma@...>:
> Hi Walter!
>
> It was really a typo!

Good to hear :-)

BTW, setting logSql = true and than inspecting the sql statements (or
trying them manually) is always a good approach to this kind of
problem.

hannes

> As soon as you do something right, it really works. Astounding. ;)
>
>
> Thanks!
> Anton
>
>
>
> Walter Krivanek, VividVisions wrote:
>> Hi,
>>
>> if you copied your type.properties from the original file, the your
>> problem is the spelling.
>>
>> coll=collection(proto)
>> coll.accessname=name
>>
>> not
>>
>> coll=collection(proto);
>> coll.accesssName=name
>>
>> Bye,
>> Walter
>>
>>
>> Anton Pirker (30.07.2008 10:43):
>>
>>> Hi List!
>>>
>>> It seems that i have more and more problems doing the really basic
>>> things in Helma..
>>>
>>>
>>> I have a Prototype Admin with this collection in the type.properties:
>>>
>>> --Admin/type.properties--
>>> industriesByName       = collection(Industry);
>>> industries.accesssName  = industry_name
>>>
>>>
>>> now i want to get an industry by its name like this:
>>>
>>> --Admin/actions.js--
>>> function main_action() {
>>>     var ind = this.industriesByName.get("Information Technology");
>>> }
>>>
>>>
>>> and no matter if there is a "Information Technology" line in the
>>> database, the .get() call always returns null...
>>>
>>>
>>> I have done this a gazillion times, but now it does'nt work anymore...
>>> Maybe i am blind. What i am i doing wrong?
>>>
>>>
>>> Thanks in advance,
>>> Anton
>>>
>>> --
>>> DI(FH) Anton Pirker
>>> Helma Freelancer
>>>
>>> http://www.ignaz.at
>>> http://shnitzl.org
>>>
>>> _______________________________________________
>>> Helma-user mailing list
>>> Helma-user@...
>>> http://helma.org/mailman/listinfo/helma-user
>>>
>>
>> _______________________________________________
>> Helma-user mailing list
>> Helma-user@...
>> http://helma.org/mailman/listinfo/helma-user
>
>
> --
> DI(FH) Anton Pirker
> Helma Freelancer
>
> http://www.ignaz.at
> http://shnitzl.org
>
> _______________________________________________
> Helma-user mailing list
> Helma-user@...
> http://helma.org/mailman/listinfo/helma-user
>
_______________________________________________
Helma-user mailing list
Helma-user@...
http://helma.org/mailman/listinfo/helma-user