Hi, I refused to give up and found a solution. My first approach was to duplicate the project from the Webdev Option "Export project". This resulted in the chaos I described in my previous post. Now I have manually copied the project, renamed the old one, openend the fresh copy in v27 and almost all gui errors gone. Still I don't see why there can only be one window inby pietvanz - WinDev Forum
Hi, I've been struggling for hours with an imported project from WB 23. I don't like the ui AT ALL, but perhaps I could get used to it. However, the styles are a complete disaster. All of the images of buttons etc. are dislocated and show red crosses, generating hundreds of ui warnings. Editing the styles is so annoying! Default are not the project styles, but the template styleby pietvanz - WinDev Forum
Hi Steven, As I said, I could not find any documentation about the framework differences. I found this out the hard way, (a browser array appeared to be shifted) so I reverted back to v1. Actually PCsoft advices not to change an existing project, but it's also essential to know what we should be aware of in a new project.. Regards, Pietby pietvanz - WinDev Forum
Hi, The difference between browsercode framework 1 and 2 seems to be a black box. I could not find any documentation about this. One major difference seems to be that arrays in v2 start with index 0, just like in javascript. While this is not a bad thing, the frase "This new version proposes a behavior close to server code and it completes the features of browser code" in the doby pietvanz - WinDev Forum
Hi, I have a dynamic awp project using two languages, NL and UK. In WB22 I use xxx_web/uk to open a page in English, this works. But in WB23 it always jumps back to xxx_web/nl.. I spent hours to fix this, but without success. Any ideas? Kind regards, Pietby pietvanz - WinDev Forum
Thanks! The best solutions are the simple onesby pietvanz - WinDev Forum
Hi, First of all: happy new year. Live well and prosper! Now to the topic: Of course I'm familiar with all the more or less useful features to make the GUI multilingual. But what about the database? Especially in Webdev I'm using lots of content stored in the database. In the WX products I'm actually missing something like a multilingual database link, so you can link stuby pietvanz - WinDev Forum
Hi John, hDeleteFile? Best regards, Pietby pietvanz - WinDev Forum
Hi Renko, Yes, it's possible by code using the table breaks, but you have to program it. Best regards, Pietby pietvanz - WinDev Forum
Hi Gus, You can create a browser code function and change it from WL to JS by clicking on the WL text in the left corner. Then the code should look like function MyWBproc(param) { MyJSfunction(param); } Then you can call this function with parameter in your button code. Best regards, Pietby pietvanz - WinDev Forum
Hi all, To whom it may concern: I was having issues with the jQuery DatePicker control (which is excellent btw) Loading the proper jQuery modules resulted in occasional errors in the browser, probably when loaded libraries collided in some way. I found this excellent WX Experts blog by (uncle) Pete Halsted explaining how to replace the Webdev jquery libraries and fix some minor security issby pietvanz - WinDev Forum
Hi Marcov, You can create a template with the menu and use the template for each page that needs it. Best regards, Pietby pietvanz - WinDev Forum
Hi Heinz, That might work. It actually does not give the correct size of the "parent" array, but I can loop through it and it gives a seemingly correct size of the "child" arrays. So I can add them up. Thanks! Pietby pietvanz - WinDev Forum
Hi Alexander, Thanks, but that's basic stuff, I mean the size in memory. Best regards, Pietby pietvanz - WinDev Forum
Hi, I'm creating an undo buffer for changes a user makes. This is an array of structures for each undo level. Every undo level contains an array of structures containing undo data. This array can have one or many items. Now I want to check the size of this undo buffer, to prevent it from growing too large. Any ideas how to find the size of this array in memory? Best regards, Piby pietvanz - WinDev Forum
Thanks Argus! I'll try that.by pietvanz - WinDev Forum
Hi, Is there a function in Windev to extract the height and width of an image file without loading it first? Kind regards, Pietby pietvanz - WinDev Forum
Hi Carlos, It is not fully automatic. It's called dynamic serving and you can find it in the Project, Referencing tab. Beste regards, Pietby pietvanz - WinDev Forum
Hi, Just a heads up: The latest Windows 10 update caused HFSQL Control Centre to trigger "Blue Screen of Death" on selecting the columns to display. No more problems after I removed the update. Before I also had a bsod in Thunderbird, can't remember what I was doing then. Best regards, Pietby pietvanz - WinDev Forum
Hi Derek, I have no experience using REST but it's not much different from the http request I use for web api's. For V22 you can adapt Peter's example by simply using a variant to build the request and do a VariantToJSON to convert it. For the reponse you do the opposite: JSONToVariant on the result string Best regards, Pietby pietvanz - WinDev Forum
Hi André, That's really simple, use the server code in the plus or minus button. The button does not need any attribute. If ATT_MyValue is the attribute of the control to be incremented: //click on plus button ATT_MyValue++ Regards, Pietby pietvanz - WinDev Forum
Hi Gianno, I did a quick test and your code works in Windev 22. So I think you forgot to check the option "Allow the execution of scipts" on the general tab of the control. Best regards, Pietby pietvanz - WinDev Forum
Hi Ola, Have a look at InitParameter. Perhaps changing he storage to file instead of registry will fix things. Registry may be messed up over the years and a file can easily be deleted. Kind regards, Pietby pietvanz - WinDev Forum
Hi Ericus, You can use enumElement to get a list of all pages in your project. Then filter out all pages that start with PAGE_Invoice. Store in an array and search the array before opening. Best regards, Pietby pietvanz - WinDev Forum
Hi Aad, QuoteWebDevYesNoSkin probably is used for YesNo. Aaah, finally solved that. No but seriously, Yes, you might think so, but actually all dialogs are comprised in that one page WebdevMessagBoxSkin. Kind regards, Piet.by pietvanz - WinDev Forum
Hi Aad, In the project description you can check "Apply the skin to the dialog boxes" on the skin styles tab. After that you will find a page WebdevMessagBoxSkin in your project that you can edit and translate. Two others WebdevOkCancelSkin and WebdevYesNoSkin also are added but I never figured out what these are used for. So don't bother to translate these. Kind regards,by pietvanz - WinDev Forum
Hi Iso, Here's a snippet of code (WD22) to force the html control s to use IE11: sExeName is string nIEversion is int // get the EXE name sExeName=fExtractPath( ExeInfo(exeName),fFileName+fExtension) // read current IE compatibility setting nIEversion=RegistryQueryValue("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROby pietvanz - WinDev Forum
Hi Aad, You don't need to assign null to the parameters since they are initially Null and automatically reset to Null again after the query has executed. So if your code is in the table initialization code as I stated, a TableDisplay,taInit will do. So outside the tablecode you do e.g.: chk_Filter_1=True chk_Filter_2=False Tabledisplay(MyTable,taInit) Where chk_Filter can be a cheby pietvanz - WinDev Forum
Hi Aad, If a query parameter is Null then it will be ignored, the easiest way to do that is in the table initialization code like this: IF chk_Filter1 then myQueryName.Param_1=Value1 IF chk_Filter2 then myQueryName.Param_2=Value2 hExecuteQuery(myQueryName,hQueryDefault) Best regards, Pietby pietvanz - WinDev Forum
Hi Ericus, Looks like perhaps you forgot the subscript of the attribute of the checkbox, that would explain only the last line being updated. But you didn't provide any code so it's just a guess. I usually do this stuf in the row display code of the looper, where you don't need a subscript for the attributes. Kind regards, Pietby pietvanz - WinDev Forum