Hi, How I can close webrowser, when push button on the form ? Is possible ?


asked 31 Jan '14, 10:23

AlfAbetas's gravatar image

accept rate: 11%


As far as I know there's no Formspider API for that, however, you can define an ExternalMethod and call "window.close()" from it.

Check Formspider APIs from this page.

There is a tutorial about externalmethods. See the link http://theformspider.com/learningcenter/how-to-use-external-method/


answered 31 Jan '14, 10:57

Serdar's gravatar image

Serdar ♦♦
accept rate: 12%

edited 31 Jan '14, 10:58

Hi Serdar,

I have created an external method named winclose and given window.close() as JavaScript Signature. Further, Post method calls APPL_CLOSE backend procedure.

However, the APPL_CLOSE procedure is never invoked. Can you kindly help me to identify the problem and solve it.

With regards.


(02 Jun '14, 01:28) grajan777

Hi George,

I believe you did created the external method correct, however, you made a mistake about calling it.

Once you created an external method, you need an action which invokes this external method. Then, from application edit dialog, point this action as a Applciation Close event.

e.g. External Method Name: "emAppClose" Action Name: "invokeEMAppClose" Procedure: "declare v_params_t api_externalMethod.tt_params; begin api_externalmethod.invoke('emAppClose', v_params_t); end;"


(02 Jun '14, 06:06) formspider ♦♦


Thank you for your answer. I tried it:

  1. The Application Close event is not invoked when webrowser or web tabpage is closed. It is invoked only when formspider application is closed within formspider window. Therefore the original purpose of invoking the external method while closing webrowser or web tabpage is defeated.

  2. Doing housekeeping work while closing the application is very important part of any application development cycle. Therefore, I request you to kindly provide us with a complete example, if possible. This could benefit all formspider developers.

With regards,


(02 Jun '14, 09:00) grajan777
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 31 Jan '14, 10:23

Seen: 1,885 times

Last updated: 02 Jun '14, 09:00

© Copyright Gerger 2017