Jump to content
  • 0

Printen vanaf Webpage van 1 record


arotgans

Question

Posted

Hallo,

 

Zie hieronder een engels mailtje (heb het namelijk geschreven en op een paar Engelstalige Filemakerforums gezet, onwetende dat er ook een Nederlandstalige was :oops: ), Ik heb het idee dat wat ik wil moet kunnen, maar kom er niet op.... Als iemand me de goede weg op zou kunnen sturen, graag...

 

Groeten,

 

André Rotgans

andre.rotgans@xs4all.nl

*************************************

Hi,

 

I've created a productiondatabase for our tv department. I also created a webinterface to view/list/edit/create records. All of that works just fine. But, I want the user to be able to fire a script, to print the record the user is editing/viewing at that moment. Here's how it goes :

 

After a find, the user gets the resultpage, showing a list of relevant records. From there, he/she can access all details from that record by clicking a hyperlink, which uses the tag :

 

So far, so good. It shows the edit/view page, where the user can update the record and save it. And now for the tricky part : I also included a hyperlink which will fire a printing script. Link is like this :

 

 

And there it is... Sometimes it prints the right record, sometimes it just prints something different. As far as my ideas at this moment goes, it might have something to do with another user doing a search from the web in the database, which makes another record 'active', if you get my point. So, I tried to create another link, which jumps to a extra html page called print. I used the link :

 

 

in order to force some kind of 're-lookup' of that particular record. The page print.html will use a refresh metatag, which after 1 second will fire the 'printing'-script. Sounds ok, but....it's not working.

 

So far for the big introduction, how can I make sure that a record I'm editing is the one being printed, even if someone else searched into the datebase (which will happen quite often, I guess) ?

 

Oh, before I forgot : the printing script is just as plain as you can maken it, it switches to a layout, calls for a subscript to print, and switches back to the mainlayout of the database.

 

If someone can help me, it would be very appreciated !

 

Kind regards,

 

André

1 answer to this question

Recommended Posts

  • 0
Posted

Dag André, welkom erbij

Ja, ik denk dat ik daarnet je vraag op FileMakerWorld heb zien staan...:) Dit forum is nog niet "officieel", dus blozen hoeft niet.

 

So far for the big introduction, how can I make sure that a record I'm editing is the one being printed, even if someone else searched into the datebase (which will happen quite often, I guess) ?

 

Je moet hier je recordID op 1 of andere manier onthouden. Het print script zou je kunnen lanceren met een -script / -edit combinatie, waarbij je met de -edit je global plaatst (de record ID) en met de -script d.m.v. een interne relatie terug je goeie record selecteert en uiteindelijk print.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...