Easy to Create, Easy to Change - Easy to use!


How to make a button to open a predefined webside


Started by Per Bruvold
Search
You will need to Sign In to be able to add or comment on the forum!

How to make a button to open a predefined webside

I have DE 7.2 and want to have a button that open a predefined webside. How do I do it? Per Bruvold
Written by Per Bruvold 01/11/12 at 07:22:37 DataEase for Windows 7.x

Re:How to make a button to open a predefined webside

Hi Per. You either get DataEase 8, where you can do all kind of Web Page/and Web enabled stuff directly in DataEase, or in lieu of that you look in the CDF sample app. You find it at the left of the Welcome screen. Over the last days, we have found that we refer to the sample apps more and more and two things become apparent... 1. That there is a lot of good advice/solutions in them. 2. That no-one look at them ;-) To be honest, we don't blame you. As per usual with DataEase documentation/samples, the good bits are hidden amongst a lot of .... We can promise, this will change. DataEase will be deployed with a lot of all new samples, templates, solutions, support databases and wiki. DataEase 8 has more new functions than all the previous versions of DataEase for Windows put together, but it is no point for us to develop them if no-one know they are there, or how to use them. That leads us onto the solution for your problem: Up to DataEase 8, this need to be solv with a CDF. We, the new "regime", don't think that DataEase should solve major issues and fuctionality with CDF's. We develop the software and any functionality we deem important, should be included in the product. Anyways, here it goes: You simply call ShellExecuteA an internal Windows function, and you need to configure it as a CDF. In fact, this too is an underused functionality in DataEase...You can register any DLL funtion in DataEase if you know the definition..i.e. return value and parameters expected and the name of the function in the DLL. When the function is registered (you will need to restart DataEase) you can use it as any other function, and you can call it from a Field, a Button, a DQL, OML etc. Everything in this call is fixed except the WebPage which her is refering to a field called Webpage. You can use a fixed http: address or a field for dynamic page changes.
Written by DataEase 01/11/12 at 08:09:18 DataEase for Windows 7.x

Re:How to make a button to open a predefined webside

Hi You need to have the Custom Function ShellExecuteA loades in the Custom Defined Function. Create a button. Action: ExecuteCDF Parameters: ShellExecuteA(getfocus( ), "","www.dataease.com","",".",1) The www.dataease.com can be a derivation from a field. Hope this helps Josef btw: in v8 this can be done a lot simpler, with the loaded website viewed as part of dataease interface!
Written by Josef Vella 01/11/12 at 10:41:24 DataEase for Windows 7.x