Jump to content
Sign in to follow this  
Leb i Sol

Custom Dialog Box and Scripts ?!

Recommended Posts

Hello FM Fans!

Here is another ? that I would rather ask before getting in too deep.

The Goal:

-Interactive/Custom dialog boxes that can be assigned to a script in the background

- NO plugins please...I am trying to learn...not trying to test my spending power laugh.gif

Why? u ask..well I have some users that are (they got the mouse part) rather confused with the FM interface...so to make their life easier and prevent error I would like them to use these "dialog boxes" (common confusion error eg. Form view to Enter data vs. Find)

so how about it?

anyone.....

thank you all!

Share this post


Link to post
Share on other sites

Hi:

I'm not sure I exactly understand your problem, but you can use the custom dialog feature of FM6 or the Show Message dialog in a script. Then you could use Status(CurrentMessageChoice) to determine what script step to execute.

Ken

Share this post


Link to post
Share on other sites

Hi Ken!

I was hopeing to achive somethine like entry of the find...

eg.

--------: ENETR DATES :--------

Enter Start Date:|_______|

Enter End Date:|_______|

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

and based on the entry run the script that will accept the values and "run" to my predesigned Report/layout.

or is this pushing it?!

thanx_

Share this post


Link to post
Share on other sites

Hey:

This is off the top of my head, so it might not be all-together accurate:

Show custom dialog [Dialog title, message, "Start Date", "End Date"

If [status(CurrentMessageChoice)=1

Perform script [your date range find script]

Else

exit script

That way you can enter data into the fields and then run the script from the dialog.

Or something like that...

Ken

Share this post


Link to post
Share on other sites

Hi Ken!

Let me put another brick on the load smile.gif....

I am trying to avoid users typing ANYthing into the layout...it would be much like a pop-up window in the web in which they could then enter the date-range and then "on submit" it will run the sorting scripts in the back.

I hope I am making myself clear....

this is somewhat function found in M$ Access

thank you for your time!

All the best!

Share this post


Link to post
Share on other sites

Sounds like you might need to have an Applescript launched to communicate between the form and populating the FM record.

Share this post


Link to post
Share on other sites

How about using separate layouts for different tasks and navigate by button? Or use mockup dialogs drawn on top of (an image of) the current layout.

Can you imagine the web if everybody was just using popup windows instead of html forms? Good I run a popup filtering proxy.

With dialogs, you will not have dropdown lists or check boxes, nor a little calendar to choose the dates from ... The record will be inaccessible for other users on the network until the user clicks OK.

Share this post


Link to post
Share on other sites

Hi All!

"How about using separate layouts for different tasks and navigate by button? "

well, this is what I have been doing until I relised that in order to give "mupltiple choices" for running Reoprts I would have to copy-edit so many layouts (and scripts) that I got bored with this approach.....

form layout-->Results layout--->print layout

now if I want to run 6 reports that would be= 18 layouts frown.gif

I was just wondering/looking for an alternative.

"Applescrip..."

windows 2000

anyhow, thanx for the posts guys I apprechaite the experience sharing as always!

All the best!

Share this post


Link to post
Share on other sites

actually, with some clever layout & scripting, you can have a single "choose from" layout, which is not much different from the custom dialog feature. imagine the global fields:

dialog_title, dialog_text, dialog_icon, dialog_action_script_id,

input#1, input#1_label, input#1_type[date/time/number/text],

input#2...

You can completely recreate the custom dialog feature, even have a lot more choices, graphics & help text, and scripting should be no more complicated than with custom dialog.

Share this post


Link to post
Share on other sites

Agreed with Christian.

I proposed a link just for another thread about Custom dialog box.

It was a file from Peter Fenner with a Fake Custom Dialog. Have a look.

For your concern about scripts and multiple layouts, time is for fun, and time also is for some work wink.gif and brain "fart"

Share this post


Link to post
Share on other sites

Nice thanx guys!

So far I have been running a simmilar concept where I have a tab-navigation and each tab(page/layout) has a 'menu' which is made of buttons that trigger replicas of these layout and THEN is where I start the ....filter-find-sort and all.

I like what Her Christian has geschrieben; I am sure I will refer to this post sooner than I think wink.gif

Ugo: Ur right...it's time for fun designs... I am sure u can trace my last posts and see the progression of work smile.gif and thanx for all the PM help on top of the post!

previous:-------------------------------------------------

"Can you imagine the web if everybody was just using popup windows instead of html forms? "

well like some -this solution would also be- a form in a pop-up and a "results/action" page would a layout smile.gif

--------OT-------------OT------------------

FAI: "Pop-Up stopper does really good job of stopping pops and it's free" if this is just on your machine no need to run proxy http://www.panicware.com/product_psfree.html the most expensive tag is $9.95

Again, thank you!

Share this post


Link to post
Share on other sites

seems good product, but I rather run it once for a network of 180 machines, thus implemented as proxy service.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   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.

Sign in to follow this  

×
×
  • Create New...

Important Information

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