PDA

View Full Version : syntax question



Dan Walsh
25-May-2005, 04:18 PM
Is the following valid syntax?

move ("Calprice." + trim(sName)) to sName
send SetddValue sName sValue


--
Dan

wila
25-May-2005, 04:24 PM
Hi Dan,

Dan Walsh wrote:
> Is the following valid syntax?
>
> move ("Calprice." + trim(sName)) to sName
> send SetddValue sName sValue

Assuming that sName is a valid fieldname and that the code resides in a
WBO somewhere then the answer is yes.
Be aware though that the file need to be related somehow to your main_DD
or you might not get back what you expect.

I absolutely love that method btw (it's short, self explanatory and clean)

--
Wil

>
>

Dan Walsh
25-May-2005, 04:32 PM
It's not working. I'm testing an XmlHttpTransfer to update records at a
remote site. Not the easiest to debug on the remote side.

Can I work directly with the record buffer from within a WBO?

"Wil van Antwerpen" <info@antwise.com> wrote in message
news:Osyp2AXYFHA.1272@dacmail.dataaccess.com...
> Hi Dan,
>
> Dan Walsh wrote:
> > Is the following valid syntax?
> >
> > move ("Calprice." + trim(sName)) to sName
> > send SetddValue sName sValue
>
> Assuming that sName is a valid fieldname and that the code resides in a
> WBO somewhere then the answer is yes.
> Be aware though that the file need to be related somehow to your main_DD
> or you might not get back what you expect.
>
> I absolutely love that method btw (it's short, self explanatory and clean)
>
> --
> Wil
>
> >
> >

wila
25-May-2005, 04:44 PM
Dan,

Dan Walsh wrote:
> It's not working. I'm testing an XmlHttpTransfer to update records at a
> remote site. Not the easiest to debug on the remote side.
What i usually do with this type of thing is to have it write logfiles
in a special folder that i can inspect after something strange happened.
One of the things you really need to know that the machine on the
recieving end did recieve what you expected it to recieve.
It's also very very useful if you can run the code thru a debugger.

>
> Can I work directly with the record buffer from within a WBO?
Yes ofcourse, you can always do that, it's just not always advised (most
of the times when you want to enforce businessrules or if you like your
code to work in several components and be able to switch between them
without damaging your record buffers) but it's definately good for quick
tests any time :)

--
Wil

>
> "Wil van Antwerpen" <info@antwise.com> wrote in message
> news:Osyp2AXYFHA.1272@dacmail.dataaccess.com...
>
>>Hi Dan,
>>
>>Dan Walsh wrote:
>>
>>>Is the following valid syntax?
>>>
>>>move ("Calprice." + trim(sName)) to sName
>>>send SetddValue sName sValue
>>
>>Assuming that sName is a valid fieldname and that the code resides in a
>>WBO somewhere then the answer is yes.
>>Be aware though that the file need to be related somehow to your main_DD
>>or you might not get back what you expect.
>>
>>I absolutely love that method btw (it's short, self explanatory and clean)
>>
>>--
>>Wil
>>
>>
>>>
>
>

wila
25-May-2005, 04:49 PM
Dan Walsh wrote:
> Can I work directly with the record buffer from within a WBO?
Of course you could also fall back into the standard type of syntax:

set field_changed_Value Of your_DD field caprice.yourfield to sValue

--
Wil

Dan Walsh
25-May-2005, 04:54 PM
and any other message of MY_DD as well I assume. thanks

"Wil van Antwerpen" <info@antwise.com> wrote in message
news:hpXhcOXYFHA.1272@dacmail.dataaccess.com...
> Dan Walsh wrote:
> > Can I work directly with the record buffer from within a WBO?
> Of course you could also fall back into the standard type of syntax:
>
> set field_changed_Value Of your_DD field caprice.yourfield to sValue
>
> --
> Wil