Quantcast
Channel: WinDev Forum
Viewing all 1914 articles
Browse latest View live

Not able to execute SQL statements after opening a connection (8 replies)

$
0
0
We have got an HFSQL server where we created a small database with couple of tables.

IP: 192.168.xx.xx
Port :4900
Database :MyDB
username :admin
password:admin
I need to create an application which executes custom SQL queries on this database. We don't want to create any analysis because the database can be configured.

We opened a connection from the windev using the following code block :

cntDatabase is Connection
cntDatabase..Provider = hAccessHFClientServer
cntDatabase..Server = IP + ":" + Port
cntDatabase..Database = MyDB
cntDatabase..User = username
cntDatabase..Password =password
// Connection to the database
IF HOpenConnection(cntDatabase) = False THEN
Error(HErrorInfo())
RETURN
END


We are able to open the connection as HOpenConnection returns true.

Following the opening of the connection we are not able to execute the SQL statements .


IF HExecuteSQLQuery("SQLResult",cntDatabase,hQueryWithoutHFCorrection,"SELECT * from Persons" ) = False THEN
Error(HErrorInfo())
RETURN
ELSE
SQLInfo("QUERY" )
END


We are getting the following error :

Error returned by <192.168.xx.xx :4900> server:
No analysis opened: <Persons> file not described.

We are not sure what exactly is the problem. We are just trying to query a HFSQL database remotely using the windev application without analysis being used.

Not sure whether there are more settings or whether we are doing something wrong.

It would be helpful if someone can share some information on this

Webdev using JQuery example (no replies)

$
0
0
Hello All,

Does anyone have an example of how to use a JQuery object in a Webdev project.

I am trying to test using FullCalendar in a project. There are no examples of using JQuery objects in a webdev project so if anyone has done something like this could you please share an example so all of us can have a starting point.

I did see an example of a JQueryUI slider but it is in French and without understanding the language I still can not figure it out.

DW

Can't get FTP to work (no replies)

$
0
0
I loaded the Application Server to a new server and it's all working except FTP. I can't load up a project. It say that the User Name is invalid. Where does this Username and password get set for the FTP part? I've tried several and can't get it to work. Suggestions?

HFSQL CS admin password [SOLVED]

$
0
0
Hi
Is there a way to change the password of the admin user by code or even better create the database with a totally different user and password?

Thanks

David

Found it - despite what it says in the help HUser.Password is not ReadOnly!

Customizing the Wx installer (3 replies)

$
0
0
I have decided to put some real effort into using the Wx installer. Currently I use SetupBuilder (Lindersoft) which is brilliant in most respects. I want to assure myself that I customize the individual Windows which I know I can but be able to maybe use code to change some aspects. Perhaps links to websites etc.

I am sure all this can be done. That's not the issue. But as ever unless you know where to look in Help you can't find it <g>

Can anyone give me a link to a Help page that walks me through how to edit the Installer?

Many thanks for Help which is almost certainly obvious!

WM21 - tall window scrolling (1 reply)

$
0
0
I have a window with 4 tables stacked vertically followed by a button. I've changed the height of the window so all the controls fit and checked the "Automatic scrollbar" option for the window. Everything works great except when the window has been scrolled to the bottom and the button is pressed, I would like to automatically scroll back to the top. The only way I've found to do this is to place an edit control at the top of the window and do a Setfocus(). Is there a better way?

Thanks, Bill

WD22 - Internal window in a looper (no replies)

$
0
0
Hi,
can i use an internal window control in a looper??

I want to set by programming the internal window for each row.

Thanks

INFORMATION: WinDev Mobile limitations (5 replies)

$
0
0
After some time spent investingating WinDev Mobile I found some limitations that make programming for Android enough difficult and sad:

  1. MyMappedFile and MyMappedUniqueKey do not supported by Android (crash)
  2. FileToMemory and MemoryToFile do not work under Android (no crash, no affect)
  3. Class and variant indirection do not work under Android (crash).
  4. Deep assignment "<=" does not supported (crash, required the same class on both sides)
  5. Avoid use of abstract class properties (crash when property is used in base class). Use abstract methods.
  6. Abstract methods must have return types (if they are functions but not procedures)

So RAD pattern is not available for use under Android...

WB22 - looper control not working in Chrome (1 reply)

$
0
0
Hi,

I have a webpage with a loopercontrol to show tumbnails of photos. Whenever the user clicks on a thumbnail a larger one is shown including some additional info.
Now this worked perfectly in all browser until today. Now Chrome refuses to show any info in the looper. Also the clickevent seems to be broken, I don't even see the mouse changing in a "hand" to inidcate that the user can click.

The page is only used by a few users. One is having this porlbme now, but also on my development machine I see the same error! This must be some Chrome update? Or Windows update?

I tried de the debug mode of Chrome (F12) but that doesn't show any error. Javascript=on, also flash=ask, popus=enabled.

How can I get my hands on such "failures" or differences between browsers.

Transfer data between mobile devices? (no replies)

$
0
0
Hi All,

Is it possible to transfer data between mobile devices? I've looked at Bluetooth and wifi but can't see how to do it.

Thanks for any help

Pete

WM 22 or 23 - iOS development requirements (1 reply)

$
0
0
Reading the WM 22 brochure makes me think WM generates all the code for the devices without further steps. However, I thought otherwise.

To develop an app for iOS, do you have to have an Apple Mac? If so, what is the minimum hardware and software needed?

Webdev 22 html5 colour picker question

$
0
0
Hi,

If I select an edit control and set a mask tekst . Then I can select a html5 cour picker. When clicked a popup displays with the html5 colour picker. So for ... Cool

However . The popup colour picker pops up on the top left of the screen.

Is it possible to change this position. There is not a lot I can do about it since there is no code involved to get this control.

Regards

Allard

HFSQL22 - convert to MSSQL

$
0
0
Hi,

I am converting my database from HFSQL to MSSQL. The IT-guys of one of the companies which uses my software don't like rare and unknown databases as hfscl is, they want a more mature (:)) database so to speak.

I loose the automatic modification but that's not a big issue.

I wonder if someone did this transition before. So I have a few questions:
1. will I run into known issues?
2. Any handy tool to convert/import all data from HFSQL to MSSQL?
3. Is it advisable to go for the NATIVE driver right from the start?

One of the issues I ran into already is that a LOT of fields are NOT defined as "null authorized", which causes troubles. I just opened and ticked hundreds of fields in the analysis to change that :sneg: (Looks like these specific fields/tables came from previous WD versions back to WD9 or so).

SOLVED Apache 2.2 SSL setup

$
0
0
I am trying to set up SSL for Apache 2.2 that is installed with WebDev. However, it seems the mod_ssl.so module is not included. Is that needed for SSL and if so where can it be found?

Is it better to move to Apache 2.4?

[WD22] HFSQL C/S OLEDB connection issue from Excel 2016

$
0
0
I am attempting to connect to tables in a HFSQL Client Server database via OLEDB from Excel 2016.

Using Data, Get Data, From other sources, From OLEDB, I can successfully connect to a database by building a connection string via the wizard, but when I try to select a particular table, instead of a preview of the data I see an error message reading:

DataSource.Error: An error happened while reading data from the provider: 'Value cannot be null.
Parameter name: pUnk'
Details:
DataSourceKind=OleDb
DataSourcePath=data source=localhost:4900;extended properties="Language=ISO-8859-1";initial catalog=<Mydatabasename>;provider=PCSoft.HFSQL

Making the same connection via ODBC works correctly.

I have read the document Examples for using the OLE DB provider for HFSQL, which includes the following:

Connecting to a HFSQL Client/Server database with a user who has a password:
When the "Importing data" window is opened at the end of import, make sure that the password was properly stored by Excel.
To do so, click the "Properties..." button then, in the "Definition" tab, check whether the password is properly saved in the "connection string". The connection string must have the following format (with the password):
Provider=PCSoft.HFSQL;Initial Catalog=DatabaseName;User ID=User;Data Source=HyperFileSQLServer:4900;Extended Properties="";Initial Catalog=DatabaseName;Password=password (duplication of the Initial catalog= is as it appears in the document)

But when I attempt to include the user id and password in the connection string, it is not allowed ("can only be provided using credentials").


Has anyone seen this before or has any suggestions?

Barcode usage in WinDev Mobile 21

$
0
0
I am looking for guidance in a small app i am trying to develop for our company

We are wanting to have an app that scans a barcode, returns a small amount of data from a sql server database.

For example.

A barcode is scanned. Upon scanning the app reaches out to our sql database. it uses the number decoded from the barcode to return a small amount of text to the phone and then displays the returned data in a text box in the app.

any guidance on this would be greatly appreciated!

[WD20] - How to make HReadSeekFirst case insensitive and exact match?

$
0
0
Hello,

I have been using HReadSeekFirst without giving it any thought. And it has worked properly satisfying my requirements. But today I ran into two problems which I cannot solve:

1. How to make HReadSeekFirst case insensitive and exact-match?
2. How to seek on multiple fields when the fields being searched do not have corresponding composite key defined in Analysis?

TIA

Component for reading Outlook MSG files

$
0
0
Hi,

WinDev 22 - Do anybody know about a great component that can decode outlook MSG files? (Free or Paid do not matter)

I`m currently having problems reading emails from outlook via WinDev and was thinking of making a Drag & Drop solution (for email archive) but needs to decode the MSG file before I can save into my email table.

Cheers
Tor-Bjarne

HNBRec question

$
0
0
Hello all. Just a silly question:

When using HNBRec does the file in question have to be open or can it be closed.

Thx

HFSQL with no pre-defined connection

$
0
0
What is the best way to set up a system that logs into one of several remote HFSQL CS
identical database servers based on the configuration in a local file. Right now I just change data.myhost.com in the client hosts file to point to the server I want. The connection in the analysis just says to connect to data.myhost.com.
Viewing all 1914 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>