asebofa.blogg.se

Scriptcase Pass Global Variable To Tab Form
scriptcase pass global variable to tab form























scriptcase pass global variable to tab form

Reference that variable for whatever it is you want to do in the component. You can set parameters of the component to a component input variable. RE: Global Varialbles (OnVisible) in Component. Accessing Global Variable Values You can access a global variables value in condition fields and any actions that include the value of variable or length of variable value value options.2.

An associative array containing references to all variables which are currently defined in the global scope of the script. This will take you to SAP form builder screen.In the right hand side you can see a tree structure which contains 1) Global settings 2) Pages and windows which are automaticaly created.Description. Goto transaction SMARTFORMS.Give a name to your form ,with naming convension Y or Z.Press CREATE button.

It has nothing to do with scriptcase. That is how browsers work. As a consequence of this, all tabs that reference the same server URL share the same session. For instance, “ ” and “ ” can each have a different PHPSESSID cookie, so each has a different session number to use when they communicate with their respective servers.All tabs in a browser that reference the same server URL share the same cookies. Cookies are referenced not only by their name, but also by which URL they are attached to.

Server A and Server B would be keeping a different set of session variables for a particular browser. Although very powerful, this approach is fraught with perils and requires in-depth knowledge of browser/server interaction and a well planned and executed design.Another side effect of the way sessions work:Besides the obvious problem of multiple tabs sharing the same session, another problem of current browser/session design occurs if you have multiple servers in a cluster in order to support load balancing or high availability. Scriptcase will supposedly support passing session IDs in the URL if you enable this option. If you configure multiple aliases for an HTTP server, like “ test1.mydomain.com” and “ test2.mydomain.com” then they will have different PHPSESSID cookies and so they will have different sessions, if they are each open in a different tab in the same browser, even though it is actually the same server serving the same pages.Instead of having the server retrieve a cookie to get the session ID from the browser, the session ID can be passed in the URL. These windows do not share cookies with each other, consequently the server treats the requests as though they are coming from different PCs: each has a different session.You can have multiple URLs for the same server.

Because of the way that each “app” is treated, it forces the programmer into using many more global (session) variables, or hassling with lots of hoops to launch another “app”. I do not think that the options in the global variables settings do anything (except for In/Out).I agree with you. Scriptcase supposedly supports storing sessions in database.More information on sessions can be found here.From what I have seen, if you use square brackets to reference a variable anywhere in your code, it becomes a session variable. When the page request comes in, the server gets the session variables from the common database instead of its own session file. This problem is generally solved by enabling the storing of sessions in a database that both servers share.

Other problem is that if you set a global variable and do a sc_redir without these parameters these are not becoming available. The inconsistancy is that if you want to pass a global variable by sc_redir you must not use the brackets. I know that if you pass parameters with sc_redir you will create new global variables in the called application. However, loads of times I cannot get access to the vars using $_SESSION and I need to use $_GET. The session option with the global variables has always been a question for me. Now I can give them a link for this topic.Tnx Dave.

The mentioned article is not realy relevant imho as this is only one of the ways to pass data. But you can also post data and use $_POST. I agree about the sc_redir issue.The fact that the data is in the url and thus visible. But it’s very well possible that it’s not the best way, you learn to work a certain way ‘because it worked the previous time’. That’s why I always pass the needed globals using sc_redir and don’t trust the $_Session.

Scriptcase Pass Global Variable To Tab Form Update This Var

SC just update this var in SC session if you pass this variable in URL. Internally SC saves this var as a session var, but ignore it. Data is passed in URL just when you force to pass as variable.I did some tests on a blank app, with this code.SC asks for this var on execution as with every global from dev but ignore the value passed, just if I call blank app like /bln_testvars/?prueba=fromGet echo prints fromGet.

Not in their own code, nor in the generated code. I guess they don’t want the risk of breaking code. It don’t check URL to update or not, and always update session var.As suggestion to NetMake, they should take note on this, and if a global var is defined just as GET, then they must sure in session is cleared, or directly not use session (better approach)SC is over 10 years old and it needs freshing up here and there.

But that said, I have loads of samples which causes open source project to be overpriced compared to commercial apps. David has a point there.I know that updating the code will sure origin a not-consistence in app, but I think that in 2015 some behavior are unacceptable… the massive use of iframe, the massive use of global vars, the lack of HTML5/CSS3 and responsivity in template… Also the not “open source” policy is a problem for me… In Italian Public Administrations we are abandoning the actual infrastructure because is not open-source… but in our structure there are a lot of not-programmers coming from oracle forms… needing to migrate them in the “new age”, scriptcase is a good way… It generate php and work on apache (also if we still use oracle db in our projects), but if I want to correct a bug or extend something there are a lot of limit (the lack of third party plugin is also a limit thet, if removed, can surely expand the possible users of scriptcase)Saying this I don’t want criticize scriptcase, the product, with his limits, have a lot of good points… but it need just an “improvement”… because it is sure valid but it can become better…Yes, I recognize the open source discussion, we have that here too. I found that strange, but over time you get use to it and you simply do it that way and don’t think about it again. I use the sc_redir with the passed variables then. In certain situations you will see that changing a global variable does not update the data in the source application and that you need to refresh.

You don’t have happy users if you break the code and users must fully redo their application.Regarding security, I see it different than you. I know that they are working on that, but if you don’t want to break code you have a problem. Responsive design, css3, html5, are all new developments and it will take time to integrate that into SC. They have a small team,any help would be helpful IMHO.But you cannot completely redesign an application over 10 years old. We have found issues from the generated code, applied fixes to SC and found that they did not use the code but solved it a different (and in our case bad) way. On problems they simply have to wait for fixed out of the community, there’s no company who can be addressed.I don’t mind that SC is closed source, but I would welcome if the templates used for generating code would be more open so that the community would be able to fix issues.

I don’t see the danger of having IFrames, lots of globals etc. If needed you can put the code through NuSpheres or Zends obfuscator the code will even run faster too. It’s only a problem when things get hacked, but then again you have other issues at hand.

scriptcase pass global variable to tab form