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

Specify abstract class name in grid 'conditional style and class' window?

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

    Specify abstract class name in grid 'conditional style and class' window?

    How does one specify an abstract class name in the client-side "Conditional Style and Class" properties window for a field in the Search Part, Grid, or Detail?

    I'd like to be able to use either the pure abstract class name, like:
    [class.searchPartSelect]
    Or, a partially abstracted name like:
    {ProjectStyle}Edit
    Or,
    <ProjectStyle>Edit

    But, I cannot find the syntax to make that work.

    #2
    Re: Specify abstract class name in grid 'conditional style and class' window?

    Have a look in the "Edit Condition" dialog for a hint. Beside "Class Name" you'll see a ?. This explains that you would either create a class in the Local CSS section... or... include an additional Style in the Grid Properties "Additional Grid style" property.

    E.g. Add MobBlue in the "Additional Grid style" property. Then... in the Conditional Style Class Name you can pick the class you want... and you'll see all the MobBlue classes available. You could enter MobBlueEdit.

    Comment


      #3
      Re: Specify abstract class name in grid 'conditional style and class' window?

      Um, yes David, I know that.

      I was wanting to specify an abstract name that would adapt to the particular project style that was/is active. When one adds a Checkbox control to the Search Part (and probably to any other part), Alpha neglects to add a CSS class name to the DIV that holds the checkboxes. I was looking to help AA out and just apply the correct class name based on the project style via a conditional (1=1) client-side class/style. If it cannot be done through the properties builder, I will have to resort to adding JavaScript to the 'onSearchRender' event to extract the base style name from the Grid's properties and build the correct class name and apply it to the DIV that contains the checkboxes for the field.

      Comment


        #4
        Re: Specify abstract class name in grid 'conditional style and class' window?

        Maybe I still don't understand.

        Are you asking what the Checkbox control Class Name is? If so, as far as I can see there isn't one. A checkbox is... just a boring checkbox. If I've not missed it somewhere... and there actually isn't one... then create your own.

        The UX component has the ability to "design" Checkbox and RadioButton controls. The Grid doesn't have that feature so you'll need to do it in a class.

        What do you want the checkbox to look like?

        Comment


          #5
          Re: Specify abstract class name in grid 'conditional style and class' window?

          Originally posted by RichCPT View Post
          How does one specify an abstract class name in the client-side "Conditional Style and Class" properties window for a field in the Search Part, Grid, or Detail?

          I'd like to be able to use either the pure abstract class name, like:
          [class.searchPartSelect]
          Or, a partially abstracted name like:
          {ProjectStyle}Edit
          Or,
          <ProjectStyle>Edit

          But, I cannot find the syntax to make that work.
          Hello Rich,

          If you're using a version 2 Alpha Anywhere style, you can specify a class from the style using the {grid.style} placeholder. For example:

          Code:
          {grid.style}Button
          Using the new version 3 styles, such as iOS7, Alpha, or the AndroidLight and AndroidDark styles, the syntax has changed to use the "theme:" prefix followed by a path that specifies the class to use. For example, If I wanted to style a Label to match a Button using the base subtheme, I could specify it's class name like this:
          Code:
          [theme:button.base.className]
          You can find the "path" by opening the style in the Style Builder. Select the "Code" tab on the right. Select the control with the desired style. The "Path" will list the text you need to specify in the Class property for a control. See attached image.

          buttonClassname.png
          Sarah Mitchell
          Director of Customer Success | [URL="https://www.alphasoftware.com"]Alpha Software Corporation[/URL]
          [B]Get in the know! [/B] Join us for our Weekly Webinars: [URL="https://www.alphasoftware.com/weekly-transform-tuesday-webinar"]TransForm Tuesday[/URL] and [URL="https://www.alphasoftware.com/weekly-alpha-anywhere-overview-webinar"]Wednesday's Alpha Anywhere Demo and Q&A[/URL]
          Connect with us: [URL="https://www.instagram.com/alpha_software_corp/"]Instagram[/URL] | [URL="https://twitter.com/AlphaSoftware"]Twitter[/URL] | [URL="https://www.facebook.com/AlphaSoftware/"]Facebook[/URL] | [URL="https://www.linkedin.com/company/alpha-software"]LinkedIn[/URL] | [URL="https://www.youtube.com/user/AlphaSoftwareInc"]YouTube[/URL]

          Comment


            #6
            Re: Specify abstract class name in grid 'conditional style and class' window?

            Thanks Sarah.
            I should have thought to look into the various placeholders as displayed in the popup window when coding inline javascript.
            Although, looking closer at the generated html for the Search part of a Grid, it seems to me that some options for CSS class or inline style may not be placed at the correct level, especially for the Grid builder's prompt for inline style to be attached to the "< table >" element.
            I did not try your method because I already added the class and styles via JavaScript in the OnSearchRender event. Now the checkbox controls and dropdown boxes in my Search part have a consistent look - a surrounding box and the controls begin at the same vertical offset in the row. It looks much better now, IMO.

            Comment


              #7
              Re: Specify abstract class name in grid 'conditional style and class' window?

              Originally posted by RichCPT View Post
              Thanks Sarah.
              I should have thought to look into the various placeholders as displayed in the popup window when coding inline javascript.
              Although, looking closer at the generated html for the Search part of a Grid, it seems to me that some options for CSS class or inline style may not be placed at the correct level, especially for the Grid builder's prompt for inline style to be attached to the "< table >" element.
              I did not try your method because I already added the class and styles via JavaScript in the OnSearchRender event. Now the checkbox controls and dropdown boxes in my Search part have a consistent look - a surrounding box and the controls begin at the same vertical offset in the row. It looks much better now, IMO.
              If you come across a template that uses the [class.xxxx] syntax, I believe you can use the same syntax to reference other classes.

              You can easily get a list of those [class.xxxx] placeholders from the "Class map" property in the Grid's properties.

              Open the "Class map" property in the Grid properties and click on the "Show the Default Class Map", it will list all of the class mappings for the [class.xxx] syntax used by version 2 styles. Note that they map to a class using the {grid.style} placeholder. The {grid.style} version can be used in conditional class statements and JavaScript for version 2 styles. Version 3 styles use the [theme:path] syntax:

              [class.page]={grid.style}Page
              [class.gridPart]={grid.style}Grid
              [class.gridHeader]={grid.style}GridHeader
              [class.gridPartToolbar]={grid.style}GridFooter
              [class.gridSeparator]={grid.style}GridSeparator
              [class.gridRowHeader]={grid.style}GridRowHeader
              [class.searchPartRowHeader]={grid.style}GridRowHeader
              [class.gridDataHeader]={grid.style}GridDataHeader
              [class.gridData]={grid.style}GridData{alternate}
              [class.gridDataAltOn]={grid.style}GridDataAlt
              [class.gridDataAltOff]={grid.style}GridData
              [class.gridRowHover]={grid.style}GridRowHover
              [class.gridRowSelected]={grid.style}GridRowSelected
              [class.gridDataError]={grid.style}GridDataError
              [class.gridSorterLink]={grid.style}Link
              [class.gridNavigatorLink]={grid.style}Link
              [class.gridDataLink]={grid.style}Link
              [class.gridNavigator]={grid.style}GridNav
              [class.gridNavigatorInput]={grid.style}Edit
              [class.gridNavigatorSelect]={grid.style}Edit
              [class.gridPartInput]={grid.style}Edit
              [class.gridSelect]={grid.style}Edit
              [class.gridPartTextarea]={grid.style}Edit
              [class.gridButton]={grid.style}Button
              [class.gridDetailViewNewRecordLink]={grid.style}Link
              [class.detailViewPartInput]={grid.style}Edit
              [class.detailViewPartHeader]={grid.style}Heading
              [class.alternateViewButton]={grid.style}Button
              [class.searchPartHeader]={grid.style}Heading
              [class.searchPartData]={grid.style}GridData
              [class.detailViewPart]={grid.style}Grid
              [class.searchPart]={grid.style}Grid
              [class.gridSummaryData]={grid.style}GridSummaryData
              [class.gridSummaryLabel]={grid.style}GridSummaryLabel
              [class.gridFrame]={grid.style}Group
              [class.gridFrameLabel]={grid.style}GroupLabel
              [class.formFrame]={grid.style}Group
              [class.formFrameLabel]={grid.style}GroupLabel
              [class.searchPartToolbar]={grid.style}GridFooter
              [class.gridQBEToggleLink]={grid.style}Link
              [class.gridNavigatorButton]={grid.style}Button
              [class.gridAlphabetButtonSearchLink]={grid.style}Link
              [class.gridAlphabetButtonSearchButton]={grid.style}Button
              [class.gridAlphabetButtonSearchSelect]={grid.style}Edit
              [class.gridHyperlinkButton]={grid.style}Link
              [class.gridHyperlinkButtonHover]={grid.style}Link
              [class.gridHyperlinkButtonPressed]={grid.style}Link
              [class.gridHyperlinkButtonDisabled]={grid.style}Link
              [class.gridLookupRowSelect]={grid.style}Link
              [class.gridButtonHover]={grid.style}ButtonHover
              [class.gridButtonPressed]={grid.style}ButtonPressed
              [class.gridButtonDisabled]={grid.style}ButtonDisabled
              [class.gridPartQBEInput]={grid.style}Edit
              [class.gridInputError]={grid.style}EditError
              [class.gridInputContainerError]={grid.style}EditBGError
              [class.gridTextareaError]={grid.style}EditError
              [class.gridSelectError]={grid.style}EditError
              [class.searchPartInput]={grid.style}Edit
              [class.searchPartButton]={grid.style}Button
              [class.searchPartSubmitButton]={grid.style}Button
              [class.searchPartClearSearchLink]={grid.style}Link
              [class.searchPartSelect]={grid.style}Edit
              [class.detailViewPartTextarea]={grid.style}Edit
              [class.searchPartTextarea]={grid.style}Edit
              [class.form]={grid.style}GridForm
              [class.formLabel]={grid.style}GridFormLabel
              [class.formData]={grid.style}GridFormData
              [class.formDataError]={grid.style}GridFormDataError
              [class.formLabelLink]={grid.style}Link
              [class.formDataLink]={grid.style}Link
              [class.formButton]={grid.style}Button
              [class.formButtonHover]={grid.style}ButtonHover
              [class.formButtonPressed]={grid.style}ButtonPressed
              [class.formButtonDisabled]={grid.style}ButtonDisabled
              [class.formInput]={grid.style}Edit
              [class.formInputError]={grid.style}EditError
              [class.formTextarea]={grid.style}Edit
              [class.formTextareaError]={grid.style}EditError
              [class.formSelect]={grid.style}Edit
              [class.formSelectError]={grid.style}EditError
              [class.gridQBE]={grid.style}GridQBE
              [class.dialogSelect]={Dialog.style}Edit
              [class.dialogTextarea]={Dialog.style}Edit
              [class.dialogInput]={Dialog.style}Edit
              [class.dialogButton]={Dialog.style}Button
              [class.dialogRadiobuttonLabel]=
              [class.dialogCheckboxLabel]=
              [class.editButtonGroupEdit]={grid.style}EditBGEdit
              [class.dialogRepeatingSectionHeader]={dialog.style}DialogRSHeader
              [class.dialogRepeatingSectionFooter]={dialog.style}DialogRSFooter
              [class.dialogRepeatingSectionRow]={dialog.style}DialogRSRow
              [class.dialogRepeatingSectionRowSelected]={dialog.style}DialogRSRowSelected
              [class.dialogRepeatingSectionSeparator]={dialog.style}DialogRSSeparator
              [class.dialogRepeatingSectionRowHover]={dialog.style}DialogRSRowHover
              [class.dialogRepeatingSectionRowError]={dialog.style}DialogRSRowError
              [class.tabbedUI]={tabbedUI.style}Grid
              [class.tabbedUIMenuCollapsed]={tabbedUI.style}GridHeader
              [class.tabbedUIMenuPanel]={tabbedUI.style}GridDataAlt
              [class.tabbedUIMenuPanelHeader]={tabbedUI.style}GridHeader
              [class.tabbedUIDivider]={tabbedUI.style}GridHeader
              [class.tabbedUIPanel]={tabbedUI.style}GridData
              [class.dialogLabel]={Dialog.style}GridData
              [class.dialogFieldLabel]={Dialog.style}DialogLabel
              [class.detailViewPartToolbar]={Grid.style}GridFooter
              [class.searchHighlight]={grid.style}TextHighlight
              [class.gridQBE]={grid.style}GridQBE
              [class.detailViewPartSelect]={grid.style}Edit
              [class.ModernFrameTitle]={grid.style}AccordionButtonSelected
              [class.ModernFrameTitleCollapsed]={grid.style}AccordionButton
              [class.ModernFrameBody]={grid.style}AccordionPane
              [class.TreeControl]={grid.style}Tree
              Sarah Mitchell
              Director of Customer Success | [URL="https://www.alphasoftware.com"]Alpha Software Corporation[/URL]
              [B]Get in the know! [/B] Join us for our Weekly Webinars: [URL="https://www.alphasoftware.com/weekly-transform-tuesday-webinar"]TransForm Tuesday[/URL] and [URL="https://www.alphasoftware.com/weekly-alpha-anywhere-overview-webinar"]Wednesday's Alpha Anywhere Demo and Q&A[/URL]
              Connect with us: [URL="https://www.instagram.com/alpha_software_corp/"]Instagram[/URL] | [URL="https://twitter.com/AlphaSoftware"]Twitter[/URL] | [URL="https://www.facebook.com/AlphaSoftware/"]Facebook[/URL] | [URL="https://www.linkedin.com/company/alpha-software"]LinkedIn[/URL] | [URL="https://www.youtube.com/user/AlphaSoftwareInc"]YouTube[/URL]

              Comment

              Working...
              X