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

Interesting new found capability of "Display format" property.

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

    Interesting new found capability of "Display format" property.

    I've been "hacking" at some of the features of A5V8 just to see how some things work and how far I could push the envelope on many functions that are "right in front of our faces".

    I don't know whether the below has been exposed before but I found it important enough to share for those who just might be at "THAT POINT" in their app development to make good use of what I'm going to explain.

    I wanted a way to display data in a field that may be blank during Grid update, in essence creating a DEFAULT value. I've only tried this in a Columnar grid but I suspect it will work in other places also.

    If you enter in the below in the "Display format" property for a field, you may benefit from being able to easily display "alternate" data. Below are three examples, one
    for each data type of Character, Date and Numeric.

    iif(len(trim(<value>)) > 0,<value>,"no entry yet")

    iif((<value>)> ctod("11/11/1111") ,<value>,date()+30 )

    iif((<value>)> 0 ,<value>, 5 * 22 )

    I'll explain just the first of the three here:
    It says "If the length of the current field value is greater than zero, then print the field value, otherwise enter 'no entry yet' into the blank field.

    Basically this iif() functionality says that if the first parameter is true, then print the next parameter,otherwise print the last parameter.

    You must create your own ligitimate logical conditions but the above should get you well on your way. What I find nice about this is if you structure your condition(s) well, you'll automatically save the inserted data the next time you click submit.

    #2
    Re: Interesting new found capability of &quot;Display format&quot; property.

    Very interesting Tom, although I haven't been able to make it work yet. I have a typical character field with a 12 digit allowance. I pasted in this code:

    iif(len(trim(<value>)) > 0,<value>,"no entry yet") and published the page.

    Nothing happens when opening the web page containing this field.

    Are you saying that "no entry yet" (without the quotes of course) should be showing up in the textbox upon opening the web page? If so that would be great, because many message board members have been clamoring for a way to place a default value in a grid field for a new record (which I believe is easily done with a dialog component), but were never able to figure out a way to do it.

    Your experimentation may lead us to something very big. If I can just get it to work.
    Sergeant Richard Hartnett
    Hyattsville City Police Department
    Maryland

    Comment


      #3
      Re: Interesting new found capability of &quot;Display format&quot; property.

      Originally posted by Rich Hartnett View Post
      Very interesting Tom, although I haven't been able to make it work yet. I have a typical character field with a 12 digit allowance. I pasted in this code:

      iif(len(trim(<value>)) > 0,<value>,"no entry yet") and published the page.

      Nothing happens when opening the web page containing this field.

      Are you saying that "no entry yet" (without the quotes of course) should be showing up in the textbox upon opening the web page? If so that would be great, because many message board members have been clamoring for a way to place a default value in a grid field for a new record (which I believe is easily done with a dialog component), but were never able to figure out a way to do it.

      Your experimentation may lead us to something very big. If I can just get it to work.
      I suspect the post was referring to existing records (where some fields aren't filled in yet) rather than new entries but hope the original poster will prove me wrong...

      However this opens the way to a new workaround - you can use Xbasic to create a new blank record and display THAT in a grid, using the above-mentioned method to pre-populate the grid...

      Comment


        #4
        Re: Interesting new found capability of &quot;Display format&quot; property.

        Rich,

        I have not experimented enough with this process for NEW records but have found it very consistant and effective for existing records.
        My early trys with a new record have failed. I don't know why. I suspect that A5 treats the data collection methodology different "behind the scenes" for a new record vs an existing one.

        I like Andrea's suggestion, create a blank record ( in the background) an then use that blank record as your NEW record, which is actually an Update.

        One thing to realize however. This method (the data) does not actually get saved to the record until you "Submit". It is in fact more of an optical illusion. To that end, I like it even better.

        You said it didn't work for you, are you sure you are putting this code in the "Display format" property for a field?

        I have found it to work with both a "Textbox" and "Label" control.

        Tom

        Comment


          #5
          Re: Interesting new found capability of &quot;Display format&quot; property.

          Hi Tom,

          Yeah it's my fault. I thought this was for a new record, so while I did put the code in the correct Display Format location, I have the particular web page set to 'ADD RECORDS ONLY," and to that end, it is only working with new records.

          Still, it is something to played with. And yes I do understand that the data is not actually inserted into the record until the submit button is pushed, but with a new record, that would be all the better.

          Anyway, thanks for the heads up and ............ keep experimenting!!!!
          Sergeant Richard Hartnett
          Hyattsville City Police Department
          Maryland

          Comment

          Working...
          X