Jump to content

Portals not working in Web


ddtully
 Share

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

Recommended Posts

Hi, when you access FileMaker through a web interface, you can only input into one file at a time, so if you want to create or amend information in a portal, you'll have to connect directly to the related database. I generally open a little javascript window linked to the related record so that the user still has the main page in the browser. This also lets you click through to a number of related records without having to click backwards and forwards.

So the link from the portal in your database would look something like this:

<A HREF="javascript blush.gif" border="0 penAWindow('FMPro?-db=related_database&-format=little_window.htm&-error=search_error.htm&-lay=layout1&-op=eq&recordkey=[FMP-FIELD:related::recordkey]&-find','win2 ',375,300,0)">[FMP-FIELD:related::company_name]</A>

This would allow you to edit.......though I think other members of the list might have a more elegant version of this!

To create a new related record, open the window with a 'new' string and then carry over your relationship value as a token.

regards, jeff

ps, the matching script that goes into the page header is:

<SCRIPT LANGUAGE=JavaScript><!--

function openAWindow( pageToLoad, winName, width, height, center) {

xposition=0; yposition=0;

if ((parseInt(navigator.appVersion) >= 4 ) && (center)){

xposition = (screen.width - width) / 2;

yposition = (screen.height - height) / 2;

}

args = "width=" + width + ","

+ "height=" + height + ","

+ "location=0,"

+ "menubar=0,"

+ "resizable=1,"

+ "scrollbars=1,"

+ "status=0,"

+ "titlebar=0,"

+ "toolbar=0,"

+ "hotkeys=0,"

+ "screenx=" + xposition + "," //NN Only

+ "screeny=" + yposition + "," //NN Only

+ "left=" + xposition + "," //IE Only

+ "top=" + yposition; //IE Only

window.open( pageToLoad,winName,args );

}

// --></SCRIPT>

[ January 15, 2002: Message edited by: Jeff Spall ]

Link to comment
Share on other sites

This topic is 7217 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
 Share

×
×
  • Create New...

Important Information

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