Here's a sample. Hope this helps you with your project. Kudos!
301 2020-09-29 08:57:50
Re: Create an application that depend on an Excel file (9 replies, posted in Script)
302 2020-09-27 22:52:47
Re: 30-Day Trial and Purchase (31 replies, posted in General)
You can add another registry for checking if the application is purchased then add a condition somewhere in your program. Hope this attachment helps you figure it out.
303 2020-09-27 04:24:44
Re: Need help for Calculated field (10 replies, posted in General)
That's one tricky part in MVD. I encountered a problem before when printing a many-to-many junction table.
My solution to it was to add another field, a relationship (redundant tho when normalizing a database but works) to the junction table.
I've added id_class to attendingStudent to display class name in the report.
Then i've added a disabled(you can hide it) text field on attendance form to filter the report from attendingStudents.
304 2020-09-25 17:55:12
Re: Need help for Calculated field (10 replies, posted in General)
I think you're missing the point of my database structure. I used a normalized many-to-many approach with it.
If you want to add student attending to a class on a specific date, you have to open(create if doesn't exists) the attendance with that class and date, then add the student there.
I've added a trap in adding an attendance. You don't need to add another record for attendance with the same class and date for it is considered as 1 record only. One record with many students attending to it.
For the relationship. I don't understand what's going on with that error you encountered in creating a relationship. It's working fine in my sample.
305 2020-09-25 15:51:55
Re: Need help for Calculated field (10 replies, posted in General)
Uncheck Not Null and set Default value as empty. Creating a not null relationship to a table that already have data will give you that error.
306 2020-09-25 14:13:35
Re: network test form (4 replies, posted in Script)
Just trigger the click procedure of the buttons.
307 2020-09-25 14:09:29
Re: Recipe examples (2 replies, posted in General)
Perhaps something like this.
Btw. You can create 10,000 with what you got there. 100kg/0.01kg = 10000
308 2020-09-25 12:45:49
Re: network test form (4 replies, posted in Script)
Maybe something like this.
309 2020-09-24 17:41:37
Re: Need help for Calculated field (10 replies, posted in General)
What error are you getting at?
It is just a relationship created by MVD DB Designer.
310 2020-09-24 15:14:45
Re: need a button remote text popup (13 replies, posted in Script)
Here's a sample.
311 2020-09-24 14:07:49
Re: need a button remote text popup (13 replies, posted in Script)
sorry haven't been online in a while, I can't find a solution to the https. I think it something to do with your server. Anyway, you got a solution to that as i can see.
In the case of <br>, you need to do some script to that, try replacing it whitespace or newline with using ReplaceStr Function.
312 2020-09-18 05:23:27
Re: need a button remote text popup (13 replies, posted in Script)
Can you provide sample link to your file to access?
313 2020-09-17 23:50:33
Re: need a button remote text popup (13 replies, posted in Script)
Please refer on this: http://myvisualdatabase.com/forum/viewtopic.php?id=6662
Download attachment there and paste the files from .rar into the folder of your application
314 2020-09-17 16:57:34
Re: need a button remote text popup (13 replies, posted in Script)
Hope this helps.
315 2020-09-16 04:26:12
Re: Deploying my Program (4 replies, posted in General)
Use Dropbox, google drive or other cloud storage and store your installer. You can share stored files in it including executable.
316 2020-09-11 02:28:25
Re: Questions about deploying a MVD project (8 replies, posted in General)
If you use Simple Script from InnoScript Studio, it auto-generates AppID, this app ID will be the unique ID of your application so that when you reinstall it or install an updater with the same AppID, It will automatically look for the installation folder of your app and remove/replace/add files depending on your setup script. It also allows windows to know that it is the same application on the existing installed application with it.
317 2020-09-10 05:21:05
Re: Need help for Calculated field (10 replies, posted in General)
Here's a sample.
318 2020-09-10 04:36:20
Re: Questions about deploying a MVD project (8 replies, posted in General)
You can always install it wherever you want. You only need the settings.ini and sqlite.db (files that are being re-written by MVD) in the userapp folder. But if your application has other file that is being read and write within the application folder/subfolder, then I think installing it on document folder is your option. Other option will be installing it under C:\. But you need to remind your client/s to disable their anti-virus when installing your application. Some antivirus see this as a threat. I used to install my applications in C:\. In that way, they can copy all the files and they can use it like a portable one.
The option onlyifdoesntexist from the .iss file will solve the database problem. Having that option will make your next installer(updater) to ignore and not replace it(application database). But you need to consider some pointers even you exclude changes within the database in your question, it may happen tho.
- Make sure to properly document changes in your database when you deploy your application for the sake of your next installer(updater).
- You have to include sql queries on your next installer(updater) when:
a. you add field/s in table. (calculated fields is an exemption. it is not a field on the database)
b. delete field/s in a table. You can ignore this if you want. but the deleted fields in your current version of the system will remain in the previously installed application. Sqlite doesnt have alter table drop fields tho. You need to rename current table, create table, insert all records from renamed to new table, then delete renamed table. This is a tedious one so i just ignore it. anyway, it doesn't affect the application.
c. rename a field/s in the table. well, you can do letter a or b to do this.
- Make sure to have a version control and checker on your application. I do this via having a field on database(settings table) the current version of client's database, then a Constant(current version) in the script of my application.
Note: If you want to hide sql queries, you can encrypt it. then decrypt before you run it in your updater. I suggest you to have another application for encrypting the sql queries if you want this. They only need to have the same encryption Key to work.
319 2020-09-09 15:12:42
Re: Questions about deploying a MVD project (8 replies, posted in General)
I assume that in order to put the program into the Programs folder and the data somewhere else would require some scripting in my MVD program?
From the link of Drivesoft's post about innosetup I reply you with before, you really don't need to write MVD script on your program. The trick is on the location of the database, settings.ini and [INI] section of your .iss file. The [INI] section automatically updates your programs settings.ini
320 2020-09-09 14:19:23
Re: LinkedFile of DBImage with MySQL (6 replies, posted in General)
Thank you Brian, but that is the whole idea. I want only the server machine to access such images so I would prefer saving them into a folder on the server machine.
I think it cannot be done. CopyFile of the MVD works on the User's computer and not with the server. You need to save file on the database. I hope it will be addressed by Drivesoft. Saving files over network is a different story. I'm no expert with it but I know there's a bunch of things to consider when you want to transfer file/s over network.
321 2020-09-08 06:07:44
Re: LinkedFile of DBImage with MySQL (6 replies, posted in General)
I think you should save your image in your database, MySQL is designed for inter-connection. saving image to User1's Computer cannot be accessed by User2's Computer if they are networked.
322 2020-09-07 07:00:39
Re: IMPORT EXCEL FILE (2 replies, posted in General)
HELLO MVD.
Anybody from the MVD and experts to help this code. When i import excel files with a currency column there is an error found.
Actually i download this sample from the forum. Credit to the Owner of this sample.Please Help.
Thanks
Change line 42 on script
from
result_string := result_string + '"'+Excel.ActiveSheet.Cells[rows,columns].Value+'",'
to
result_string := result_string + '"'+VarToStr(Excel.ActiveSheet.Cells[rows,columns].Value)+'",'
323 2020-09-07 02:05:26
Re: Deploying my project (3 replies, posted in General)
This post might help you.
324 2020-09-03 13:50:08
Re: Bug in ComboBox (2 replies, posted in General)
Here's one solution.
FirstEmptyItem in Combobox property will disable arrow navigation unless you type at least 1 character.
325 2020-09-02 12:36:57
Re: Replacing the ComboBox with the ability to search and add data to DB (5 replies, posted in General)
Check out this post. Maybe it is what you're looking for.
Прочтите этот пост. Может быть, это то, что вы ищете.