Announcement

Collapse
No announcement yet.

Header with a image link and global variable

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

  • Header with a image link and global variable

    Hello; I would like to build header with a static image link and with some global variable inside it. How can I make it?.

    I just don't want to specify that image and these global variable everytime of every application I build cause they will be using the same header.

  • #2
    In general I would create a menu as a start point and apply header template to that. That header will fixed so you can upload your image into that and it will work as you want. You can also take a tempate, make a copy and then change that to use a static image. It virtually works the same way.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Originally posted by aducom View Post
      You can also take a tempate, make a copy and then change that to use a static image. It virtually works the same way.
      I don't understand what you are saying.

      I do understand you first point and it is perfect for applications but how can that work for report . All my reports must have the same header with a small difference(that's why I will use global variable).

      Comment


      • #4
        Header Image Dinamic

        Hi,

        You can try like this :

        1. In your Header Template you can change {NM_CAB_LOGOTIPO} to : <img src="{NM_CAB_LOGOTIPO}"
        2. In your menu app -> Layout -> header variables change
        NM_CAB_LOGOTIPO choose "Value" instead "Image" [logo_image]
        3. In Application init put this code : [
        logo_menu] ='/scriptcase/app/[appname]/_lib/img/grp__NM__img__NM_logo.jpg';

        Enjoy

        Comment

        Working...
        X