I've got the forms designer loading in our website and I've edited the config.xml, but there's still a little more I need to do programmatically. I'm looking over the documentation and everything is about C# and vb.net. I don't understand what C# and vb.net have to do with the php designer.fx version and I don't understand why I can change the language in the report settings - isn't it all php and flex? I don't see any documentation talking about the code for PHP or the Flex viewer/designer code. I'm just a little lost trying to get started.
If anyone can point me to some documentation or give me some pointers, here's what I'm trying to do:
1. Preload a connection and datasources whenever the user creates a new form (our users will never manually connect to a database - it should already be connected when they go to create a new form)
2. Save forms to a mssql database by default
3. Load forms from a mssql database by default
Could anyone provide me with a little help getting started here? Thanks!
Having trouble getting started with the PHP/Flex source
Re: Having trouble getting started with the PHP/Flex source
Hello,
Thank you for your interest in our product. Please look at the index.php file:
1. For these purposes is 'sti_get_connection_string' function in which you can specify the connection which will be used for reports.
2. See the 'sti_save_report', it will be called when the report is saving.
2. See the 'sti_get_report', it will be called when the report is loading.
Thank you.
Thank you for your interest in our product. Please look at the index.php file:
1. For these purposes is 'sti_get_connection_string' function in which you can specify the connection which will be used for reports.
2. See the 'sti_save_report', it will be called when the report is saving.
2. See the 'sti_get_report', it will be called when the report is loading.
Thank you.
Re: Having trouble getting started with the PHP/Flex source
Hello.
Our main product is Stimulsoft Reports.Net. All new features are implemented in this product at first. Also we have one format of report templates for all products. So C# and VB.Net languages were moved to Reports.Fx for PHP to keep backward compatibility.
Thank yuo.
Our main product is Stimulsoft Reports.Net. All new features are implemented in this product at first. Also we have one format of report templates for all products. So C# and VB.Net languages were moved to Reports.Fx for PHP to keep backward compatibility.
Thank yuo.
Re: Having trouble getting started with the PHP/Flex source
Thank you for the responses. I unfortunately am still in need of a little help. I've successfully set the connection string in sti_get_connection_string, but it doesn't load the form with a connection already created. Instead it seems to return that connection string whenever I select "New Connection..." from within the forms designer.
So what I need to learn now is how to create a New Connection and new Data Sources in the PHP code when the form loads. Is this possible?
So what I need to learn now is how to create a New Connection and new Data Sources in the PHP code when the form loads. Is this possible?
Re: Having trouble getting started with the PHP/Flex source
After reading here http://forum.stimulsoft.com/viewtopic.p ... rce#p69247, I see that creating new connections before the form loads is not possible.
What's concerning me now is I'm seeing that the connection string itself is encoded in the form .mrt file. This won't work for our purposes. We create forms and then send them to multiple customers with many different databases to use and edit our forms. Each of their databases will have the same schema as ours, so the data source can be in the mrt file, but the actual connection string to the database cannot be hardcoded in the form. Instead, they set the connection string to their database when they install our software, and all forms that are viewed and edited from that software uses that one connection string.
Is this possible to do right now in Stimulsoft Reports.Fx for PHP? If not, how easy/feasible would it be for someone on my team to edit the source code to add this functionality?
What's concerning me now is I'm seeing that the connection string itself is encoded in the form .mrt file. This won't work for our purposes. We create forms and then send them to multiple customers with many different databases to use and edit our forms. Each of their databases will have the same schema as ours, so the data source can be in the mrt file, but the actual connection string to the database cannot be hardcoded in the form. Instead, they set the connection string to their database when they install our software, and all forms that are viewed and edited from that software uses that one connection string.
Is this possible to do right now in Stimulsoft Reports.Fx for PHP? If not, how easy/feasible would it be for someone on my team to edit the source code to add this functionality?
Re: Having trouble getting started with the PHP/Flex source
Hello,
When designer connecting to the database, for each connection the specified function should be called. We will check this point.
Thank you.
When designer connecting to the database, for each connection the specified function should be called. We will check this point.
Thank you.