Jump to content

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

Recommended Posts

Posted

Hi,

I'm trying to find a way to keep a search, if that make sense.

Once a person has done a search for a set of records, they will from then on only need to see those records. The found records display in a list, and there is an 'edit' button for them to edit it, but after it's edited, I want them to click a button to go back to the current found set.

Any suggestions on the way I should go about it?

Thanks,

Jo

Posted

I can think of a few ways of doing this:

1. Use Frames.

2. Use a pop-up window for editing details.

3. Use Tokens to "remember" the search criteria and reload the list page after the edit has been submitted.

I've used the first two methods, however other methods exist.

All the best.

Garry

Posted

Thanks very much for your help, this forum is amazing for what you can learn smile.gif

I took your first suggestion and are now trying to do it using frames. I want my search results to show up in the left frame of my main page. But I can't seem to get this working. I know how to use frames with normal HTML, but the CDML is confusing me. I have the link [FMP-linkrecid: layout=, format=detail.htm] for the right hand frame, showing the first found record, which is fine, but I can't get the right column to work. If I use 'result.htm' in the src it gives me just the source, and not the processed data. What I think I need is a 'FMP-linkrecid' that is for found records, not current record, which ironically was my original problem.

Can someone set me straight here?

I just need to know what I use in the src of my frames, and where my search action goes to. Is it the main page with the layouts inside?

Thanks again,

Jo

Posted

Here is the html/cdml you would use to call the details page from a lefthand frame:

[FMP-Record]

<a href="http://URL/FMP?-db=mydb.fp5&-lay=mylay&-format=details.html&-recid=[FMP-CurrentRecID]&-find" target="detailsframe">[FMP-Field:.....</a><br>

[/FMP-Record]

If you need to call the initial Frames with a Find you can pass the criteria through with Tokens and a -view. Then use an "onload=" in the Body tag of the desired Frame.

All the best.

Garry

Posted

Hi PrincessJo,

Check out the following link to this topic I posted a few weeks ago:

Editing Fields

I put up a FULL EXPLINATION on how to do this very thing. Except in this one, I have my users selecting records to be editited in a list (a simple search), then it will take them to a form they can then edit. Once they are done and press submit, it will process all the records, and then take them back to the original page where they can see what their changes.

Check it out!

~Addam~

Posted

hi

(some additionals to above hints)

i would use links instead of buttons to edit records in your found list.

the link could look like this:

[fmp-record]

<a href="fmpro?-db=yourdb.fm&-lay=anylayout&-format=editrecord.html&-recid=[fmp-currentrecid]&-find" target="edit">[fmp-field:xxxx]</a><br>

[/fmp-record]

so if you click now on a link out of your found list on your left frame1 (navigation),

it will be displayed in frame2 (edit). see --> target="edit" in the link

and you could have a link in the left or in the right frame which is reloading / finding

the found set again after one or several records have been modified.

the link could look like this:

<a href="[fmp-link:ra]&-format=foundset.html&-find" target="navigation">reload found set</a>

about [fmp-link:ra]

r = omit format file section of the url

a = omit action section of the url

about the frames:

frame1: navigation, on the left side, which is called "navigation"

frame2: destination to display records from the list in frame1, which is called "edit"

--------------

something similar i have used on a project: http://www.hoe.ch/labels

you may have a look. what you see there is the front end only.

the back end looks a bit different. there i'm modifying/adding/deleting

records. but i'm also switching between the two frames.

all the best

mimmo

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