Unable to populate form with DRW info

A

Augie Dawg

I'm trying to put a value that has been generated by the DRW into a form
field as the initial value. I've put the following value into the "initial
value" box of the Text Box Properties dialog box:

<%=FP_FieldHTML(fp_rs,"Dues")%>

"Dues" is defined in a DRW custom query found before the form as follows:

FORMAT (IIf(DatePart('m',Now()) Between 7 AND 10), ([MemberDues]/2),
[MemberDues]) ,'$#,##0.00') AS Dues

The DRW runs with no problem, but the form field that follows it with my
default value is left blank.

The form is using the "Save to Database" option...I'm thinking that the
Webbot that handles this option and does field validation is dropping this
value somehow. Any other ideas?

Thanks,
A.D.
 
J

Jon Spivey

Hi,
I'd go to HTML view and type the value in yourself, eg
<input type="text" value="<%=FP_FieldHTML(fp_rs,"Dues")%>" name="something">
 
A

Augie Dawg

The value is correctly set in the HTML; it appears as follows:

<input name="PaymentAmount" size="5" value="<%=FP_FieldVal(fp_rs,"Dues")%>"
tabindex="2">

I've tried to further isolate the problem by not using the "Save to
Database" option and instead creating a simple form that then invokes a page
with a custom query with INSERT INTO logic. To my surprise, that didn't
work. So then I tried to simply write out the value...I inserted the
following after the DRW but before the form:

<%response.write(FP_FieldHTML(fp_rs,"Dues"))%>

Once again, nothing was written!! So now I'm really confused, as I know FP
uses this type of code to generate parameters for hyperlinks, so the scope
of fp_rs should be active. I've tried printing other fields from the same
query, with no results being printed.

Can anyone shed any light on this problem?

Thanks,
A.D.

------------------------------------------------------


Jon Spivey said:
Hi,
I'd go to HTML view and type the value in yourself, eg
<input type="text" value="<%=FP_FieldHTML(fp_rs,"Dues")%>" name="something">

--
Cheers,
Jon
Microsoft MVP - FP

Augie Dawg said:
I'm trying to put a value that has been generated by the DRW into a form
field as the initial value. I've put the following value into the "initial
value" box of the Text Box Properties dialog box:

<%=FP_FieldHTML(fp_rs,"Dues")%>

"Dues" is defined in a DRW custom query found before the form as follows:

FORMAT (IIf(DatePart('m',Now()) Between 7 AND 10), ([MemberDues]/2),
[MemberDues]) ,'$#,##0.00') AS Dues

The DRW runs with no problem, but the form field that follows it with my
default value is left blank.

The form is using the "Save to Database" option...I'm thinking that the
Webbot that handles this option and does field validation is dropping this
value somehow. Any other ideas?

Thanks,
A.D.
 
A

Augie Dawg

I'm afraid there was a bit of fuzzy thinking on my part, as I was trying to
use FP_FieldVal outside the scope of the DRW region. Saving off the value I
needed inside the DRW with some VBScript worked, though. Thanks for your
suggestion nonetheless.

A.D.


Augie Dawg said:
The value is correctly set in the HTML; it appears as follows:

<input name="PaymentAmount" size="5"
value= said:
tabindex="2">

I've tried to further isolate the problem by not using the "Save to
Database" option and instead creating a simple form that then invokes a page
with a custom query with INSERT INTO logic. To my surprise, that didn't
work. So then I tried to simply write out the value...I inserted the
following after the DRW but before the form:

<%response.write(FP_FieldHTML(fp_rs,"Dues"))%>

Once again, nothing was written!! So now I'm really confused, as I know FP
uses this type of code to generate parameters for hyperlinks, so the scope
of fp_rs should be active. I've tried printing other fields from the same
query, with no results being printed.

Can anyone shed any light on this problem?

Thanks,
A.D.

------------------------------------------------------


Jon Spivey said:
Hi,
I'd go to HTML view and type the value in yourself, eg
<input type="text" value="<%=FP_FieldHTML(fp_rs,"Dues")%>" name="something">

--
Cheers,
Jon
Microsoft MVP - FP

Augie Dawg said:
I'm trying to put a value that has been generated by the DRW into a form
field as the initial value. I've put the following value into the "initial
value" box of the Text Box Properties dialog box:

<%=FP_FieldHTML(fp_rs,"Dues")%>

"Dues" is defined in a DRW custom query found before the form as follows:

FORMAT (IIf(DatePart('m',Now()) Between 7 AND 10), ([MemberDues]/2),
[MemberDues]) ,'$#,##0.00') AS Dues

The DRW runs with no problem, but the form field that follows it with my
default value is left blank.

The form is using the "Save to Database" option...I'm thinking that the
Webbot that handles this option and does field validation is dropping this
value somehow. Any other ideas?

Thanks,
A.D.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Split form 0
Dynamic Naming of Form Button 3
INSERT syntax using DRW 0
Need some PWA help 0
DRW & ASP 5
Problem with SET & REF function 0
Check Boxes in Form with DRW 1
interesting GROUP BY problem in DRW 1

Top