• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

[HELPED] Front End HTML?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [HELPED] Front End HTML?

    1) Is there a build command and/or generate command to get the front end HTML; somewhat like the Sencha Touch SDK? Or should that be what we use?

    2) Must the front end HTML use specific Valence .js files and structure?

    3) Must the front end HTML contain heavy use of Java, or is there a simple set Java/Javascript code that can be used for the calls to RPG?

  • #2
    1) Not entirely sure what you are asking on this one. Are you referring to packaging/minifying up code?
    2) If you are running your application within the Valence portal, you must include the valence-extjs4.js file. You can structure your code however you like, single file, multiple files, MVC, etc...
    3)Yes, the front-end makes heavy use of Javascript (not to be confused with Java). You do not have to make heavy use of Javascript, you could code all of your HTML, but then you are defeating the purpose of using the Javascript library and all its benefits. You will definitely have a lot more complexity in your code by not using the framework (assuming you want to create a "web 2.0" type application). As far as making a call to an RPG program, the code below will accomplish that:
    Code:
    Ext.Ajax.request({
       url : 'vvcall.pgm',
       params : {
           pgm : 'myRpgPgm',
           parm1 : 'abc',
           parm2 : 123
       }
    });

    Comment

    Working...
    X