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

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

Recommended Posts

Posted

Sorry for not having answered this earlier.

POSTs, e.g. forms are not submitted automatically when a page with a form is loaded. Somebody needs to hit the submit button. Another solution is to add a Javascript command onload="document.forms[0].submit();" into the body tag. However, then you are dependent on the user if he has turned on Javascript in his browser or not.

Much better, however, is to use a GET request in your case and forget about your delegate_search page. A GET request in your case is an URL that you offer as a link. You can construct it from the information in your delegate_search by taking all the name,value pairs and adding them as &name=value in the URL:

http://www.yourhost.com/FMPro?-db=contacts.fp5&-format=delegate_summary.htm&-error=delegate_error.htm&-lay=contacts&-max=all&category=Delegate&-find

Posted

Also, try using "[FMP-Record]" tags. For example:

[FMP-Record]

[FMP-field: salutation] [FMP-field: firstname] [FMP-field: lastname]

[FMP-field: position]

[FMP-field: organization]

[FMP-field: address1]

[FMP-field: address2]

[FMP-field: city] [FMP-field: state] [FMP-field: zip]

[FMP-field: country]

email: [FMP-field: email1]

Tel: [FMP-field: phone1]

Fax: [FMP-field: fax1]

[/FMP-Record]

Good Luck.

Garry

  • 2 weeks later...
  • Newbies
Posted

Gary:

Thanks for your reply.

Adding the [FMP-Record] field must have been obvious to you! Anyway, the resulting web page looks fine but now I have two more questions for you:

1. Is there anyway of suppressing blank lines on the web page? In my example, the field [FMP-field: position] is often empty & I'd like to remove the blank line.

2. In my search page I search on a field called "category" from the database "contacts.fp5". I would now like to search on a global field called "xgid" from a related database "groups.fp5" but display the fields from "contacts.fp5". Is this possible?

Thanks again, for your help,

John

Posted

1. You can use [FMP-If] tags to remove the blanks. Like this:

[FMP-If: position .eq.][FMP-Else][FMP-Field: position][/FMP-If]

2. You can refer the related fields with the "::". Like this:

[FMP-Field: groups::xgid]

Good Luck.

Garry

  • Newbies
Posted

Garry:

Thanks for your help! Your answer to my first question did the job.

The second problem has not been resolved. Perhaps I was mistaken when I referred to the field I'm trying to display; I called it a related field, but now that I look at the database I see that contacts.fp5 is displaying fields from another database (groups.fp5) in this way:

<>

What I'm really trying to do is find records in groups.fp5 with a value of field "gid"="G15". Then I want to display contact details - name, address, etc. - from the contacts.fp5 database. Sorted by lastname from contacts.fp5.

So, in my search.htm file I have the following:

And then in my summary.htm file I've tried the following:

[FMP-field: contacts::firstname] [FMP-field: contacts::lastname]

[FMP-field: contacts::organization]

[FMP-field: contacts::address1]

[FMP-field: contacts::address2]

But the summary.htm file displays no information from the search other than the title on the page.

Any advice?

Thanks,

John

Posted (edited)

To display records from the Portal you will need to use these tags:

[FMP-Records]

[FMP-Portal: contacts]

[FMP-Field: contacts::firstname].....

[/FMP-Portal]

[/FMP-Records]

Good Luck.

Garry

p.s. I think you would need to have the Portal, on the Layout, sorted by Lastname.

Edited by Guest
Portal Sort

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