Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Display some field values in a tabbedui Header

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

    Display some field values in a tabbedui Header

    Hi
    Upon selecting a Patient in any UX or Grid, i would like to show the current selected patient name and some other fields like phone number in the tabbedui's header. How can i do that?
    Currently those values update different session variables ( one for the id, one for the name etc...)

    Many thanks
    Jaime

    #2
    Re: Display some field values in a tabbedui Header

    here is what I do...
    Put this in the Header text property

    <div id="header_detail" style="width:100%;bgcolor:#3a4048;border:solid 1px #3a4048;font-size:12pt;font-weight:bold;color:#fff;">
    <div id="header_title" style="float:left;width:15%;text-align:left;">
    Quote Tool
    </div>
    <div id="header_profile" style="float:left;width:30%;text-align:right;">
    Selected Profile is <%a5 ?SESSION.PROFILEID %> <%a5 ?SESSION.PROFILENAME %> in <%a5 ?SESSION.DISTRICT %>
    </div>
    <div id="header_date" style="float:left;width:15%;text-align:right;border-right: 1px solid white;color:#fff;">
    <%a5 ?date() %>&nbsp;&nbsp;
    </div>
    <div id="header_logout" style="float:right;width:15%;text-align:right;">
    <a href="logout.a5w" style="border: none; text-decoration:none; display: inline-block">
    <img style="vertical-align:middle;border:none;" src="images/stock_exit.png" >Logout</a>&nbsp;&nbsp;
    </div>
    <div id="header_user" style="text-align:left;">
    &nbsp;&nbsp;<%a5 ?SESSION.FULLNAME %>
    </div>
    </div>

    Then in the component where you select your patient:

    function SetSelectedProfile as C (e as p)
    SESSION.PROFILEID = convert_type(e.dataSubmitted.PROFILESEARCH,"C")
    SESSION.PROFILENAME = "Unknown"
    dim cnx as SQL::Connection
    dim crs as SQL::ResultSet
    if cnx.open("::Name::SS1-SAP")
    dim sql as C = "SELECT FORMALNAME, NICKNAME, DISTRICT FROM mqPROFILES WHERE PROFILEID = " + e.dataSubmitted.PROFILESEARCH
    if cnx.Execute(sql)
    crs = cnx.ResultSet
    SESSION.PROFILENAME = crs.data("FORMALNAME")
    SESSION.DISTRICT = crs.data("DISTRICT")
    SESSION.NICKNAME = crs.data("NICKNAME")
    if SESSION.PROFILENAME = "" .AND. len(SESSION.NICKNAME) > 1
    SESSION.PROFILENAME = SESSION.NICKNAME
    end if
    end if
    cnx.close()
    end if
    dim txt as C = "Selected Profile is " + SESSION.PROFILEID + " " + SESSION.PROFILENAME + " in " +SESSION.DISTRICT
    dim js as C = "parent.document.getElementById("header_profile").innerHTML = "" + js_escape(txt) + "";"
    SetSelectedProfile = js
    end function
    Pat Bremkamp
    MindKicks Consulting

    Comment


      #3
      Re: Display some field values in a tabbedui Header

      Thanks Pat, you make it look so easy :-)
      I think i can modify the line:
      Code:
      <div id="header_profile" style="float:left;width:30%;text-align:right;">
      Selected Profile is <%a5 ?SESSION.PROFILEID %> <%a5 ?SESSION.PROFILENAME %> in <%a5 ?SESSION.DISTRICT %>
      </div>
      by
      Code:
      <div id="header_profile" style="float:left;width:30%;text-align:right;">No patient selected</div>
      since SetSelectedProfile will build the innerHTML from scratch, isn't it?

      Comment


        #4
        Re: Display some field values in a tabbedui Header

        That's a good idea. Give it a try.
        Pat Bremkamp
        MindKicks Consulting

        Comment


          #5
          Re: Display some field values in a tabbedui Header

          Didn't work at first, because of the "color: #fff" ( that's white over white ) in your sample, but now it works.

          Do you have any idea how can i change now whatever is displayed to be an array, say in a dropdownbox?
          The idea behind it is that most of the time they work on a specific patient, then just one small action on another patient before coming back to the first one. So, if i save them in a dropdown, they can come back to the first one quickly.

          Comment


            #6
            Re: Display some field values in a tabbedui Header

            ...also do the SESSION variables need to be char type? Noticed you converted your ID

            Comment


              #7
              Re: Display some field values in a tabbedui Header

              Yes session variables should be charcter type. They may work in some places as other types, but according to Alpha, at some time they will become character only, so you might as well set them up that way now as you go along.
              Pat Bremkamp
              MindKicks Consulting

              Comment


                #8
                Re: Display some field values in a tabbedui Header

                What I usually do is set the order of the (in your case patients) to be the most recent worked on. That way the ones they want to search for will often be on the page with no searching needed.
                Pat Bremkamp
                MindKicks Consulting

                Comment


                  #9
                  Re: Display some field values in a tabbedui Header

                  Thans Pat. My question was how can i put a control (dropdownbox or some other display mechanism ) in the "header_profile" div from your sample for instance

                  Comment


                    #10
                    Re: Display some field values in a tabbedui Header

                    ouch. That hurts my brain. Maybe you could create a session variable of a state variable and a button on the page to do a return, not in the header. You need to do a save on the current patient anyway, (or lose the data) so that give you an opportunity to save the "last" patient.
                    Pat Bremkamp
                    MindKicks Consulting

                    Comment


                      #11
                      Re: Display some field values in a tabbedui Header

                      LOL my brain hurts daily :-)
                      I'm thinking of ditching the tabbedui alltogether and use a UX with buttons and expanding menus, will give me a little more control.

                      Comment

                      Working...
                      X