PDA

View Full Version : DDO not found in web object ?



Mark Rutherford
12-Nov-2005, 08:46 PM
Weird because I see the dd there.
the file is there too...
what I am doing is finding something in another table depending on
what I was proveded from the first table.

so, I look something up in one table and move another value to a second
one and find it there.

then I try to get it like...
somevar = oWebAuth.ddValue("table.field")

this throws to me an error 4148

however, it appears to be dependant on what the 'main' file is.

workarounds? or is it PHP time? I need to be able to get at 30 different
tables, not 1.

Ian Telfer
13-Nov-2005, 05:22 PM
Mark,

Is the DD a parent or grandparent of the main dd, therefore you would
expect the record to be loaded, or not?

If not, you would have to make a function call to get your information
such as;

somevar=oWebAuth.Call("Get_DoFindTheInfo")

Ian


Mark Rutherford wrote:

> Weird because I see the dd there.
> the file is there too...
> what I am doing is finding something in another table depending on
> what I was proveded from the first table.
>
> so, I look something up in one table and move another value to a
> second one and find it there.
>
> then I try to get it like...
> somevar = oWebAuth.ddValue("table.field")
>
> this throws to me an error 4148
>
> however, it appears to be dependant on what the 'main' file is.
>
> workarounds? or is it PHP time? I need to be able to get at 30
> different tables, not 1.

Mark Rutherford
13-Nov-2005, 06:40 PM
Ian,

It gets the data from one table, but not the other.
they are not related in any way. I just assumed that when it fires the
function to find the record in the one table, that I can find what I
want in the second one and it should be loaded?

I made a table and related it, stuffed some records in it and it did work.

So I can only see data from related tables? or is there something
special I have to do to find records in unrelated tables?



Ian Telfer wrote:
> Mark,
>
> Is the DD a parent or grandparent of the main dd, therefore you would
> expect the record to be loaded, or not?
>
> If not, you would have to make a function call to get your information
> such as;
>
> somevar=oWebAuth.Call("Get_DoFindTheInfo")
>
> Ian
>
>
> Mark Rutherford wrote:
>
>> Weird because I see the dd there.
>> the file is there too...
>> what I am doing is finding something in another table depending on
>> what I was proveded from the first table.
>>
>> so, I look something up in one table and move another value to a
>> second one and find it there.
>>
>> then I try to get it like...
>> somevar = oWebAuth.ddValue("table.field")
>>
>> this throws to me an error 4148
>>
>> however, it appears to be dependant on what the 'main' file is.
>>
>> workarounds? or is it PHP time? I need to be able to get at 30
>> different tables, not 1.
>
>

Ian Telfer
13-Nov-2005, 06:52 PM
Mark,

You would have to write a function in the web object to do it, pretty
straight forward though.

Ian


Mark Rutherford wrote:

> Ian,
>
> It gets the data from one table, but not the other.
> they are not related in any way. I just assumed that when it fires the
> function to find the record in the one table, that I can find what I
> want in the second one and it should be loaded?
>
> I made a table and related it, stuffed some records in it and it did
> work.
>
> So I can only see data from related tables? or is there something
> special I have to do to find records in unrelated tables?
>
>
>
> Ian Telfer wrote:
>
>> Mark,
>>
>> Is the DD a parent or grandparent of the main dd, therefore you would
>> expect the record to be loaded, or not?
>>
>> If not, you would have to make a function call to get your
>> information such as;
>>
>> somevar=oWebAuth.Call("Get_DoFindTheInfo")
>>
>> Ian
>>
>>
>> Mark Rutherford wrote:
>>
>>> Weird because I see the dd there.
>>> the file is there too...
>>> what I am doing is finding something in another table depending on
>>> what I was proveded from the first table.
>>>
>>> so, I look something up in one table and move another value to a
>>> second one and find it there.
>>>
>>> then I try to get it like...
>>> somevar = oWebAuth.ddValue("table.field")
>>>
>>> this throws to me an error 4148
>>>
>>> however, it appears to be dependant on what the 'main' file is.
>>>
>>> workarounds? or is it PHP time? I need to be able to get at 30
>>> different tables, not 1.
>>
>>
>>

Evertjan Dondergoor
14-Nov-2005, 03:44 AM
Mark,

The DdValue functions start with the mainDD and try to find the 'correct' DD from there. So if it is not related to the mainDD it
will not be found and you get this error 4148.

You got make another WO where this ios the main DD, dynamically change the mainDD or write a function like Ian suggested.

Evertjan

"Mark Rutherford" <mark@freequest.net> wrote in message news:OI0zIQ$5FHA.3872@dacmail.dataaccess.com...
> Weird because I see the dd there.
> the file is there too...
> what I am doing is finding something in another table depending on
> what I was proveded from the first table.
>
> so, I look something up in one table and move another value to a second one and find it there.
>
> then I try to get it like...
> somevar = oWebAuth.ddValue("table.field")
>
> this throws to me an error 4148
>
> however, it appears to be dependant on what the 'main' file is.
>
> workarounds? or is it PHP time? I need to be able to get at 30 different tables, not 1.