Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7744 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi!

I have a search page with this code:

<P><INPUT TYPE="text" NAME="_cday" VALUE="01/01/2003"

<P><INPUT TYPE="text" NAME="_cday" VALUE="31/12/2003"

This code works fine, but I would like to have the date in the second line to show the date today. I have tried to do this:

<P><INPUT TYPE="text" NAME="_Cday" VALUE="[FMP-Currentdate]"

But this only show up as [FMP-Currentdate] in the text box.

The DB is located in another folder than the Web-folder.

In the browser I open the URL: http://localhost/search.htm

Maybe there is another way to get the wanted result. I hope someone can give me a clue on what to do.

Ingar

Posted

Hi, Ingar! Yeah, Garry's right... you cannot display FMP information from your database on your "first" page. You can have input boxes for searches and stuff but if you are actually drawing upon info in your db (or in this case from FMP application), the Web Companion cannot substitute true desired data for your tags until it has been accessed.

You can do what Garry hints at by using JavaScript (it has date functions) or you can do what I did and just have your 1st page be an intro page with a -findany action that refreshes automatically to the main page that has the current date (I used a calc field using Status(CurrentDate) for mine) and search query boxes.

Good luck!

--ST

This topic is 7744 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.