Jump to content

Portals without inline action tag


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

Recommended Posts

I have browsed as many past posts as I could find, so I hope I am not repeating things here...

I am using FMP5 Unlimited, serving two databases which are related. I used HomePage and additional tags to create a search page which returns results in a page with a portal. The portal works great as long as I use the button (generated by HomePage) to submit the search request. However, If I use a link to submit the search, I only get the fields from the parent file - no related fileds in the portal.

I have managed to use the inline action tag to get things going for now, but am curious as to why I can't duplicate the button action in a link.. As my databases grow, the inline tag will become slower I believe, so I need to solve this some time soon.

Any ideas?

Thanks in advance!

Link to comment
Share on other sites

you mean you are trying to submit a form with a text link instead of a button??

<a href="javascript:document.FORMNAME.submit()">submit the form</a>

change FORMNAME to whatever the name of your form is.. if your form doesn't have a name give it one..

<FORM ACTION="FMPro" name="FORMNAME">

[This message has been edited by bman (edited March 12, 2001).]

oops you know what, i misread you post, i dont think what i posted is going to help you.. sorry.. pay me no mind.. its Monday.. arrgghhh

[This message has been edited by bman (edited March 12, 2001).]

Link to comment
Share on other sites

Thanks. I guess I should clarify. The button sends the canned search request to FMP and seems to package it in a way I have as yet been unable to duplicate using a link.

One effort before I resorted to inlineAction:

FMPro?-DB=WDWCourseDB.fp5&-Format=search_results.htm&-error=search_error.htm&-op=e&cdbOnWeb=1&-Find

Does your suggestion only work for the submit button? Could I use a form and use Java to submit the -Find command?

Link to comment
Share on other sites

well if you really want to use a form and submit it with a link.. you just have to put this at the end of your form

<input type="hidden" value="-find">

so it might look like this..

code:


<FORM ACTION="FMPro" name="FORMNAME">

//All you form stuff goes here//

<input type="hidden" value="-find">

</form>

<a href="javascript:document.FORMNAME.submit()">submit the form</a>


but thats if you want to submit the form with a link.. not sure if thats what you want to do or not.

[This message has been edited by bman (edited March 12, 2001).]

Link to comment
Share on other sites

FMPro?-DB=WDWCourseDB.fp5 <ok>

<?>you have not designated the layout in your db. Are you using just one layout?<?>

&-Format=search_results.htm <ok>

&-error=search_error.htm <ok>

<?>&-op=e <huh?>

&cdbOnWeb=1 <I take it that you have a field cdbonweb and you are searching for all records which contain the numeric value "1" within that field, and that is the only field on which you are performing a find>

&-Find <ok>

Peace

Keith M. Davie

Link to comment
Share on other sites

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