• 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.

Image

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

  • Image

    Can we save image file from valence?
    i wondering.. upload image and show imahe on grid and form
    could you tell me how?
    thx

  • #2

    Comment


    • #3
      In 5.2 Nitro App Builder you can see an example of a grid column displaying the item image. Its the Order Entry "Item List" grid that has a renderer on the image column. Below is the renderer.

      Code:
      var markup = '<img style="max-height:40px;" src="/resources/images/nabSamples/{0}.jpeg"/>';
      return Ext.String.format(markup,rec.get('F1_PRDNO'));

      Comment


      • #4
        Ok... ths for the infomation..
        i will try it...

        thx

        Comment


        • #5
          If i install valence 5.2 in as400 v7.1
          i can do that?

          Comment


          • #6
            I still searching for the source code when we create widget from Nitro app biilder.... where is the source?
            with Nitro autocode.. we get the source di ifs and rpgle

            Comment


            • #7
              I posted the only custom JavaScript renderer source above earlier @ 8:14 AM. That demonstrates what the grid column renderer would be to display an image in the grid cell.

              Comment


              • #8
                eddytjhin, there is no overall source code for Nitro App Builder apps. You can add pieces of code here and there as Johnny showed but the apps are interpreted from configuration. This is different from AutoCode. AutoCode generates source that you can then go and edit later. Nitro App Builder creates apps by defining them and saving the definition in files, then interpreting that app definition at runtime.

                Comment


                • #9
                  Ooh Ok.. i get it
                  Thx

                  Comment

                  Working...
                  X