INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Input Variables don't capture correct data after adding formulas

Input Variables don't capture correct data after adding formulas

Input Variables don't capture correct data after adding formulas

(OP)
I have a QRP form that I print using Centura Report Writer.  

At first, it used input variables and input items only to get relevant information and everything seemed to work well.

I had a new requirement to change the output format of the report recently so I added some formulas in place of some of the input variables.  

Now the report doesn't work as expected... the formula parts do work, but the input variables that worked before don't work correctly and the page numbering is off.

The form is an Invoice.  If we print multiple invoices at once, it should number them correctly, (e.g. each should say Page 1, unless an invoice has multiple pages)  Instead, it is assuming that all the invoices take on consecutive numbering.. so the first page has page 1, the second invoice has also page 1, but then the 3rd invoice has page 2, the 4th invoice has page 3, and so on.

The input variable fetch data like contact name and phone number.  The form seems to apply one contact and number to all invoices.

Here is the formula I applied:

CODE

StrReplace( StrIFF( StrScan( LN_CURR_DISC_UNIT_PRICE , '$0.00' ) , LN_CURR_DISC_UNIT_PRICE, ' ' , LN_CURR_DISC_UNIT_PRICE ), StrScan( LN_CURR_DISC_UNIT_PRICE , '$'), 1, ' ')

It suppresses 0 values and removes $ signs which are part of the database entries.

Please advise of any suggestions as to the cause of my issue.

Thanks.

RE: Input Variables don't capture correct data after adding formulas

Do you have a backup copy of the qrp file.  If so , revert back to it and change one item at a time , progressively , running the report with each change, so you can identify which of your changes is causing the error.


See me at: http://www.linkedin.com/in/sleighton

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close