![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
When I open a FMP database via IWP, it always defaults to a sort based on record creation date. I'd prefer to create a script (or somehow specify a different default sort) that sorts based on my criteria. I've created the scipt with steps that are all IWP-compatible, but how do I trigger it to occur when someone logs into IWP using a browser session? What's the script step that handles this? Thanks in advance, and apologies if this has been answered previously. I searched but found nothing similar in the archives. |
#3
| |||
| |||
|
|
Check File...File Options. There's an option there to run a script at opening. G Tim wrote: When I open a FMP database via IWP, it always defaults to a sort based on record creation date. I'd prefer to create a script (or somehow specify a different default sort) that sorts based on my criteria. I've created the scipt with steps that are all IWP-compatible, but how do I trigger it to occur when someone logs into IWP using a browser session? What's the script step that handles this? Thanks in advance, and apologies if this has been answered previously. I searched but found nothing similar in the archives. |
#4
| |||
| |||
|
|
Right, that much I know. That's checked now, but I think that's for the opening of the file on the host machine. I'm trying to make it execute when initiating a remote browser session using Instant Web Publishing. Thanks for the response. -tim Grip wrote: Check File...File Options. There's an option there to run a script at opening. G Tim wrote: When I open a FMP database via IWP, it always defaults to a sort based on record creation date. I'd prefer to create a script (or somehow specify a different default sort) that sorts based on my criteria. I've created the scipt with steps that are all IWP-compatible, but how do I trigger it to occur when someone logs into IWP using a browser session? What's the script step that handles this? Thanks in advance, and apologies if this has been answered previously. I searched but found nothing similar in the archives. |
#5
| |||
| |||
|
|
No, it's not just for the host machine. The script you specify activates whenever someone opens the file, even as a client of a hosted file, and even via IWP. "Tim" <tim.pritchard (AT) gmail (DOT) com> wrote in message news:1168107819.209811.300060 (AT) 38g2000cwa (DOT) googlegroups.com... Right, that much I know. That's checked now, but I think that's for the opening of the file on the host machine. I'm trying to make it execute when initiating a remote browser session using Instant Web Publishing. Thanks for the response. -tim Grip wrote: Check File...File Options. There's an option there to run a script at opening. G Tim wrote: When I open a FMP database via IWP, it always defaults to a sort based on record creation date. I'd prefer to create a script (or somehow specify a different default sort) that sorts based on my criteria. I've created the scipt with steps that are all IWP-compatible, but how do I trigger it to occur when someone logs into IWP using a browser session? What's the script step that handles this? Thanks in advance, and apologies if this has been answered previously. I searched but found nothing similar in the archives. |
#6
| |||
| |||
|
|
Yup, that actually did the trick - I just needed to add the step of going to what was now the first record. The sort was leaving me in the last record after the sort was complete, so I didn't realize that it had sorted. Adding the Go to Record [First] step set things right. Thanks again... -tim Bill Marriott wrote: No, it's not just for the host machine. The script you specify activates whenever someone opens the file, even as a client of a hosted file, and even via IWP. "Tim" <tim.pritchard (AT) gmail (DOT) com> wrote in message news:1168107819.209811.300060 (AT) 38g2000cwa (DOT) googlegroups.com... Right, that much I know. That's checked now, but I think that's for the opening of the file on the host machine. I'm trying to make it execute when initiating a remote browser session using Instant Web Publishing. Thanks for the response. -tim Grip wrote: Check File...File Options. There's an option there to run a script at opening. G Tim wrote: When I open a FMP database via IWP, it always defaults to a sort based on record creation date. I'd prefer to create a script (or somehow specify a different default sort) that sorts based on my criteria. I've created the scipt with steps that are all IWP-compatible, but how do I trigger it to occur when someone logs into IWP using a browser session? What's the script step that handles this? Thanks in advance, and apologies if this has been answered previously. I searched but found nothing similar in the archives. |
#7
| |||
| |||
|
|
One other question that now occurs to me - if I want the sort to end up leaving me at the record closest to the current date, but in the future - when none of the records may match the date on which the database is being accessed - is there an easy way to pull that off? In other words, say I have records that have dates in the date field (which is my sort criteria) - maybe 1/6/07, 1/10/07, and 1/26/07 - and it's 1/8/07. I want the record with 1/10/07 in it to come front and center after the sort. Is there an extra step in the sort that will make that happen? I assume it'd be a variation of the Go to record script step I'm using now, but I don't know what criteria to enter in the 'by calculation' script option, assuming that's the way to get it done. Thanks - again - in advance. -tim Tim wrote: Yup, that actually did the trick - I just needed to add the step of going to what was now the first record. The sort was leaving me in the last record after the sort was complete, so I didn't realize that it had sorted. Adding the Go to Record [First] step set things right. Thanks again... -tim Bill Marriott wrote: No, it's not just for the host machine. The script you specify activates whenever someone opens the file, even as a client of a hosted file, and even via IWP. "Tim" <tim.pritchard (AT) gmail (DOT) com> wrote in message news:1168107819.209811.300060 (AT) 38g2000cwa (DOT) googlegroups.com... Right, that much I know. That's checked now, but I think that's for the opening of the file on the host machine. I'm trying to make it execute when initiating a remote browser session using Instant Web Publishing. Thanks for the response. -tim Grip wrote: Check File...File Options. There's an option there to run a script at opening. G Tim wrote: When I open a FMP database via IWP, it always defaults to a sort based on record creation date. I'd prefer to create a script (or somehow specify a different default sort) that sorts based on my criteria. I've created the scipt with steps that are all IWP-compatible, but how do I trigger it to occur when someone logs into IWP using a browser session? What's the script step that handles this? Thanks in advance, and apologies if this has been answered previously. I searched but found nothing similar in the archives. |
![]() |
| Thread Tools | |
| Display Modes | |
| |