Jump to content

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

Recommended Posts

Posted

If I perform a search using the -RecID tag the FMP-IncludeField works:

http://xx.xx.xx.xx/FMPro?-db=Answers.fp5&-Lay=Web&-format=surveystep1.html&-Op=eq&-Error=surveyerror.html&-RecID=34934&-find...

Web page includes FMP-IncludeField that pulls the the contents of a field [fmp-include:surveystep1D3.txt]. This displays the correct .txt file.

But if I replace -RecID with a specific field, for example, one called "CurrentID," FMP-IncludeField does not work properly:

http://xx.xx.xx.xx/FMPro?-db=Answers.fp5&-Lay=Web&-format=surveystep1.html&-Op=eq&-Error=surveyerror.html&CurrentID=32978&-find

The FMP-IncludeFiled is actually finding data from the first record in the database, not the one matching CurrentID=32978 from the above -find, thus displaying the wrong .txt file. I cant get the tag FMP-IncludeField to display the information from the correct record.

It has me stumped.

Larry

Posted

Whoops, look like that was "-fmtfield" that was removed.

Is this the database that you had the other problem with the data from the wrong record being returned? If so where you able to "remake" the indexes? This can be done by "exporting" the database to a new one.

All the best.

Garry

Posted

Same problem. But I think it might be more of a problem with the FMP-IncludeField tag than my search results in the database.

The fact that if I search using -RecID and it works, and if I search instead doing a -find for specific field contents instead of -RecID and it keeps jumping to the first record...

Leads me to believe that maybe the FMP-IncludeField is meant to work with a Global field.

Anyone know if this is the case?

LR

Posted

Is there a different way to accomplish this...

[FMP-Include: page1.html]

Works just fine if the tag is hard coded just like above. But what if I want the .html page to come from a field in the database?

[FMP-Include: [FMP-field: myfield]]

Of course I know the above format is not correct, but I put it that way so get the idea across.

I have tried:

[FMP-Include: {FMP-field: myfield}]

I have tried...

[FMP-IncludeField: myfield]

[FMP-Include: page1.html] is the contents of myfield

But when I try to do a -find the [FMP-IncludeField does not seem to work properly because it wants to only work properly with a global field.

Any thoughts?

LR

Posted

Larry, there is a demo in the sample files forum which uses the includefield to serve images. I posted it there many moons ago. Serving images on the web or some such subject line. If I recall (allowing for a senior moment) it necessitated the use of a calc field.

HTH

This topic is 7556 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.