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

Error trying to use SQL view for dropdown choices

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

    Error trying to use SQL view for dropdown choices

    If I try to define the Dropdown choices for a field as coming from a SQL view, I keep getting an error message: "Generated XBasic has errors: Missing or invalid keyword".

    It doesn't seem to matter which field from the view I choose - get the same error. I'm also not clear (as a new user) how to even find out where the error is - when I go to the xbasic tab, nothing is highlighted.

    I'm pretty sure I've done this already in other grids, but for some reason it won't work in this one.

    Ideas?

    #2
    Re: Error trying to use SQL view for dropdown choices

    You're using an SQL database? If so, which one? When you say "view", do you really mean a view (as in a view for that defined through that particular DB engine)? What does your SQL statement look like? I've seen quirky behavior - particularly when dealing with arguments and revisions to the statement with respect to same within the A5 IDE. A5 doesn't appear to handle that very well, and Selwyn has seen the samples I sent to him.

    That's just a shotgun response, without knowing what you mean by "view".

    Comment


      #3
      Re: Error trying to use SQL view for dropdown choices

      Yes, i mean a SQL Server defined view. The view works just fine - i can query on it and it displays correctly.

      The field which i want to use for the dropdown is a calculated field (firstname + " " + lastname), but NONE of the fields from the view work - all generate the same error message (with no useful info about the error).

      Comment


        #4
        Re: Error trying to use SQL view for dropdown choices

        Can you post the SQL statement on here please?

        Comment


          #5
          Re: Error trying to use SQL view for dropdown choices

          SELECT DISTINCT fullname, personID FROM People&Co ORDER BY fullname

          I also tried changing the order by to use the stored field 'personID' rather than the calculated field 'fullname' but with the same result.

          Here's the generated XBasic too, if that's helpful:

          im tmpl as p
          tmpl.ComponentName = "DialogueGridShort"
          tmpl.ComponentType = "Grid"
          tmpl.AjaxOn = .t.
          tmpl.LayoutColumns = 1
          tmpl.SecurityModel = "Group Based"
          tmpl.SecurityMode = ""
          tmpl.PreCalcMode = "Standard"
          tmpl.clientSideDateFormat = "MM/dd/yy"
          tmpl.customizationString.javascriptDialogs = ""
          tmpl.DataSourceType = "CS"
          tmpl.CS.database_type = "CS"
          tmpl.CS.type = "connectionstring"
          tmpl.cs.ConnectionString = "::name::aerbase"
          tmpl.CS.SQL = "SELECT [DialogueID], [CompanyID], [ProjectID], [PrimaryContact], [SecondaryContact], [Status], [Summary], [NextAction], [NextActionDate], [EditHistory] FROM [Dialogues] ORDER BY ProjectID, Status"
          DIM tmpl.Arguments[0] AS P
          DIM tmpl.ArgumentsPage AS P
          with tmpl.ArgumentsPage
          .PromptTextAbove = ""
          end with
          tmpl.CS.PrimaryKeyColumns = "DialogueID"
          tmpl.grid_is_editable = .t.
          tmpl.edit.allow_update = .t.
          tmpl.edit.allow_insert = .t.
          tmpl.edit.number_of_insert_rows = 3
          tmpl.edit.allow_delete = .t.
          tmpl.ShowNewRecordsOnLastPageOnly = .f.
          tmpl.AddNewRecordRowsPosition = "Bottom"
          tmpl.SecurityMode = ""
          tmpl.edit.delete_checkbox_label = "Delete"
          tmpl.edit.has_Cancel_button = .f.
          tmpl.edit.cancel_button_text = "Cancel"
          tmpl.edit.submit_button_text = "Submit"
          tmpl.edit.confirm_before_submit = .f.
          tmpl.edit.confirm_before_submit_message = "Submit changes?"
          tmpl.edit.check_for_write_conflicts = .t.
          tmpl.edit.write_conflict_check_type = 2
          tmpl.edit.save_original_values = .t.
          tmpl.edit.Show_Update_Commands = .f.
          tmpl.edit.Execute_Update_Commands = .t.
          tmpl.edit.TargetPage = "<Self>"
          tmpl.autoNumberColumnLabel = "Auto"
          tmpl.edit.RowEditStyle = "AllRows"
          tmpl.edit.NewRecordsEditStyle = "AlwaysShown"
          tmpl.edit.NewRecordsButtonLabel = "New Records"
          tmpl.edit.DeleteRecordControl = "Checkbox"
          tmpl.edit.HasRowStatusColumn = .t.
          tmpl.edit.OneEditableRowAtATime = .t.
          tmpl.edit.field_error_style.type = "Icon"
          tmpl.edit.field_error_style.icon = "images/$$generic.error.png.a5image"
          tmpl.edit.field_error_style.control_classname = ""
          tmpl.edit.field_error_style.error_classname = ""
          tmpl.edit.field_error_style.control_hover_classname = ""
          tmpl.edit.field_error_style.error_hover_classname = ""
          tmpl.edit.RefreshRowMethod = "AutoSelect"
          tmpl.edit.Editable_GridRow_Options_Style = "Icons"
          tmpl.edit.RefreshRowOnDirty = .t.
          tmpl.edit.LazyEdit = .t.
          tmpl.edit.abortGridUpdateIfAnyRowHasError = .f.
          DIM tmpl.update.tables[1] as p
          With tmpl.update.tables[1]
          .Name = "Dialogues"
          .Table_Alias = "Dialogues"
          .PrimaryKey = "DialogueID"
          End With
          tmpl.grid_layout_style = 1
          tmpl.add_records_only = .f.
          tmpl.rows = 10
          tmpl.suppress_empty_rows = .t.
          tmpl.has_row_separator = .t.
          tmpl.alternate_bands = .f.
          tmpl.even_band_size = 1
          tmpl.odd_band_size = 1
          tmpl.alternate_column_bands = .f.
          tmpl.even_column_band_size = 1
          tmpl.odd_column_band_size = 1
          tmpl.conditionalStyle = ""
          tmpl.clientSideConditionalStyle = ""
          tmpl.show_title = .f.
          tmpl.title = ""
          tmpl.FontSize = "Medium"
          tmpl.No_records_message = "No records in query"
          tmpl.total_records_row_position = 1
          tmpl.total_records_row = "Records:&nbsp; {Total_Records}&nbsp;"
          tmpl.show_column_titles = 1
          tmpl.show_row_labels = .t.
          tmpl.sort_style = 3
          tmpl.reset_page_number_when_sorting = .t.
          tmpl.EditRegion.Grid.Top = <<%txt%
          %txt%
          tmpl.EditRegion.Grid.Bottom = <<%txt%
          %txt%
          tmpl.EditRegion.Grid.Left = <<%txt%
          %txt%
          tmpl.EditRegion.Grid.Right = <<%txt%
          %txt%
          tmpl.HasNewRecordsTitle = .f.
          tmpl.NewRecordsTitle = "<tr><td class=\"{a5_style}ColumnTD\" colspan=\"{a5_colspan}\" style=\"padding: 0px;\" >New Records</td></tr>"
          tmpl.HasExistingRecordsTitle = .f.
          tmpl.ExistingRecordsTitle = "<tr><td class=\"{a5_style}ColumnTD\" colspan=\"{a5_colspan}\" style=\"padding: 0px;\" >Existing Records</td></tr>"
          tmpl.Highlight_row_onHover = .t.
          tmpl.Highlight_row_onSelect = .t.
          tmpl.HasRecordsPerPageSelector = .t.
          tmpl.RecordsPerPageChoices = "1,2,5,10,25,50,75,100"
          tmpl.RecordsPerPageSelectorTemplate = "&nbsp;&nbsp;{Grid.RecordsPerPageSelector} Records per page"
          tmpl.has_qbe_row = .f.
          tmpl.qbe.initial_display = "Hidden"
          tmpl.hasLinkedContent = .f.
          tmpl.hasRowExpandColumn = .f.
          tmpl.hasSelectedRowColumn = .t.
          tmpl.hasCheckboxSelectColumn = .f.
          tmpl.AdditionalGridStyles = ""
          tmpl.LocalCss = ""
          tmpl.CSSLinkedFiles = ""
          tmpl.JavaScriptLinkedFiles = ""
          tmpl.useMasterTemplate = .f.
          tmpl.MasterTemplateStyle = "Table - Vertical Layout"
          tmpl.MasterLayoutTemplate = ""
          tmpl.MasterLayoutTemplateJavascript = ""
          tmpl.MasterLayout.PaneLabel.Search = "Search"
          tmpl.MasterLayout.PaneLabel.Grid = "Grid"
          tmpl.MasterLayout.PaneLabel.DetailView = "Detail"
          tmpl.MasterLayout.AccordionStyle = "Multiple"
          tmpl.MasterLayout.InitialOpenPanes = "Search,Grid,DetailView"
          tmpl.CanCollapseGrid = .f.
          tmpl.CollapseBar.Title = "Collapse Grid"
          tmpl.CollapseBar.OpenIcon = ""
          tmpl.CollapseBar.ClosedIcon = ""
          tmpl.CollapseBar.Style = ""
          tmpl.Collapsebar.Class = ""
          tmpl.Collapsebar.ContainerStyle = ""
          tmpl.Collapsebar.ContainerClass = ""
          tmpl.Collapsebar.InitialState = "open"
          tmpl.fields = 10
          DIM tmpl.field_info[tmpl.fields] as P
          with tmpl.field_info[1]
          .Fieldname = "DialogueID"
          .Scope = "Local"
          .DisplayFormat = ""
          .DisplayUnFormat = ""
          .ConditionalStyle = ""
          .ConditionalStyleLevel = "Cell"
          .ClientSideConditionalStyle = ""
          .ClientSideConditionalStyleLevel = "Cell"
          .QBEDisable = .f.
          .QBEInlineStyle = ""
          .Type = "N"
          .Updateable = .t.
          .Table_Alias = "Dialogues"
          .FieldToUpdate = "DialogueID"
          .Varname = "DIALOGUEID"
          .NullIfBlank = .f.
          .Initial_Value = ""
          .Column.LabelPosition = "Left"
          .Controltype = "Textbox"
          .Textbox.Size = 20
          .Textbox.MaxLength = 20
          .Textbox.InLineStyle = "text-align: right;"
          .Textbox.IsPassword = .f.
          .hasWatermark= .f.
          .BreakType = "None"
          .nCols = 1
          .Column.Hide = .t.
          end with
          with tmpl.field_info[2]
          .Fieldname = "CompanyID"
          .Scope = "Local"
          .DisplayFormat = ""
          .DisplayUnFormat = ""
          .ConditionalStyle = ""
          .ConditionalStyleLevel = "Cell"
          .ClientSideConditionalStyle = ""
          .ClientSideConditionalStyleLevel = "Cell"
          .QBEDisable = .f.
          .QBEInlineStyle = ""
          .Type = "N"
          .Updateable = .t.
          .Table_Alias = "Dialogues"
          .FieldToUpdate = "CompanyID"
          .Varname = "COMPANYID"
          .NullIfBlank = .f.
          .Initial_Value = ""
          .Column.LabelPosition = "Left"
          .Controltype = "DropDownBox"
          .DropdownBox.InLineStyle = ""
          .DropdownBox.Type = "Dynamic"
          .DropdownBox.Size = 1
          .DropdownBox.selectStyle = "Single"
          .DropdownBox.NotInListRule = "Add to List"
          .DropDownBox.Datasource = "CS"
          .DropDownBox.maxchoices = 0
          .DropDownBox.CS.ConnectionString = "::name::aerbase"
          .DropDownBox.CS.SQL = "SELECT DISTINCT name, companyID FROM Companies ORDER BY name"
          .DropDownBox.DisplayValueField = "name"
          .DropDownBox.StoredValueField = "companyID"
          .DropDownBox.DisplayValueFieldType = "C"
          .DropDownBox.StoredValueFieldType = "N"
          .DropdownBox.noSelectionDisplayValue = ""
          .DropdownBox.hasCascadingChoices = .f.
          .BreakType = "None"
          .nCols = 1
          .Column.Hide = .f.
          .Column.Heading = "Company"
          .BaseFieldExpression = "CompanyID"
          .Column.Sort = "CompanyID"
          end with
          with tmpl.field_info[3]
          .Fieldname = "ProjectID"
          .Scope = "Local"
          .DisplayFormat = ""
          .DisplayUnFormat = ""
          .ConditionalStyle = ""
          .ConditionalStyleLevel = "Cell"
          .ClientSideConditionalStyle = ""
          .ClientSideConditionalStyleLevel = "Cell"
          .QBEDisable = .f.
          .QBEInlineStyle = ""
          .Type = "C"
          .Updateable = .t.
          .Table_Alias = "Dialogues"
          .FieldToUpdate = "ProjectID"
          .Varname = "PROJECTID"
          .NullIfBlank = .f.
          .Initial_Value = ""
          .Column.LabelPosition = "Left"
          .Controltype = "DropDownBox"
          .DropdownBox.InLineStyle = ""
          .DropdownBox.Type = "Dynamic"
          .DropdownBox.Size = 1
          .DropdownBox.selectStyle = "Single"
          .DropdownBox.NotInListRule = "Add to List"
          .DropDownBox.Datasource = "CS"
          .DropDownBox.maxchoices = 0
          .DropDownBox.CS.ConnectionString = "::name::aerbase"
          .DropDownBox.CS.SQL = "SELECT DISTINCT ProjectID FROM Projects ORDER BY ProjectID"
          .DropDownBox.DisplayValueField = "ProjectID"
          .DropDownBox.DisplayValueFieldType = "C"
          .DropdownBox.noSelectionDisplayValue = ""
          .DropdownBox.hasCascadingChoices = .f.
          .BreakType = "None"
          .nCols = 1
          .Column.Hide = .f.
          .Column.Heading = "Project"
          .BaseFieldExpression = "ProjectID"
          .Column.Sort = "ProjectID"
          end with
          with tmpl.field_info[4]
          .Fieldname = "PrimaryContact"
          .Scope = "Local"
          .DisplayFormat = ""
          .DisplayUnFormat = ""
          .ConditionalStyle = ""
          .ConditionalStyleLevel = "Cell"
          .ClientSideConditionalStyle = ""
          .ClientSideConditionalStyleLevel = "Cell"
          .QBEDisable = .f.
          .QBEInlineStyle = ""
          .Type = "N"
          .Updateable = .t.
          .Table_Alias = "Dialogues"
          .FieldToUpdate = "PrimaryContact"
          .Varname = "PRIMARYCONTACT"
          .NullIfBlank = .f.
          .Initial_Value = ""
          .Column.LabelPosition = "Left"
          .Controltype = "DropDownBox"
          .DropdownBox.InLineStyle = ""
          .DropdownBox.Type = "Dynamic"
          .DropdownBox.Size = 1
          .DropdownBox.selectStyle = "Single"
          .DropdownBox.NotInListRule = "Add to List"
          .DropDownBox.Datasource = "CS"
          .DropDownBox.maxchoices = 0
          .DropDownBox.CS.ConnectionString = "::name::aerbase"
          .DropDownBox.CS.SQL = "SELECT DISTINCT fullname, personID FROM People&Co ORDER BY fullname"
          .FATAL ERROR: Error parsing SQL statement
          .
          . Your database has returned the following error code and description to Alpha Five.
          . Consult your database documentation for further information.
          .
          .47 - 'line 1:41: unexpected token: People'
          .DropdownBox.noSelectionDisplayValue = ""
          .DropdownBox.hasCascadingChoices = .f.
          .BreakType = "None"
          .nCols = 1
          .Column.Hide = .f.
          .Column.Heading = "Primary Contact"
          .BaseFieldExpression = "PrimaryContact"
          .Column.Sort = "PrimaryContact"
          end with
          with tmpl.field_info[5]
          .Fieldname = "SecondaryContact"
          .Scope = "Local"
          .DisplayFormat = ""
          .DisplayUnFormat = ""
          .ConditionalStyle = ""
          .ConditionalStyleLevel = "Cell"
          .ClientSideConditionalStyle = ""
          .ClientSideConditionalStyleLevel = "Cell"
          .QBEDisable = .f.
          .QBEInlineStyle = ""
          .Type = "N"
          .Updateable = .t.
          .Table_Alias = "Dialogues"
          .FieldToUpdate = "SecondaryContact"
          .Varname = "SECONDARYCONTACT"
          .NullIfBlank = .f.
          .Initial_Value = ""
          .Column.LabelPosition = "Left"
          .Controltype = "Textbox"
          .Textbox.Size = 20
          .Textbox.MaxLength = 20
          .Textbox.InLineStyle = "text-align: right;"
          .Textbox.IsPassword = .f.
          .hasWatermark= .f.
          .BreakType = "None"
          .nCols = 1
          .Column.Hide = .f.
          .Column.Heading = "Secondarycontact"
          .BaseFieldExpression = "SecondaryContact"
          .Column.Sort = "SecondaryContact"
          end with
          with tmpl.field_info[6]
          .Fieldname = "Status"
          .Scope = "Local"
          .DisplayFormat = ""
          .DisplayUnFormat = ""
          .ConditionalStyle = ""
          .ConditionalStyleLevel = "Cell"
          .ClientSideConditionalStyle = ""
          .ClientSideConditionalStyleLevel = "Cell"
          .QBEDisable = .f.
          .QBEInlineStyle = ""
          .Type = "C"
          .Updateable = .t.
          .Table_Alias = "Dialogues"
          .FieldToUpdate = "Status"
          .Varname = "STATUS"
          .NullIfBlank = .f.
          .Initial_Value = ""
          .Column.LabelPosition = "Left"
          .Controltype = "Textbox"
          .Textbox.Size = 20
          .Textbox.MaxLength = 20
          .Textbox.InLineStyle = ""
          .Textbox.IsPassword = .f.
          .hasWatermark= .f.
          .BreakType = "None"
          .nCols = 1
          .Column.Hide = .f.
          .Column.Heading = "Status"
          .BaseFieldExpression = "Status"
          .Column.Sort = "Status"
          end with
          with tmpl.field_info[7]
          .Fieldname = "Summary"
          .Scope = "Local"
          .DisplayFormat = ""
          .DisplayUnFormat = ""
          .ConditionalStyle = ""
          .ConditionalStyleLevel = "Cell"
          .ClientSideConditionalStyle = ""
          .ClientSideConditionalStyleLevel = "Cell"
          .QBEDisable = .f.
          .QBEInlineStyle = ""
          .Type = "C"
          .Updateable = .t.
          .Table_Alias = "Dialogues"
          .FieldToUpdate = "Summary"
          .Varname = "SUMMARY"
          .NullIfBlank = .f.
          .Initial_Value = ""
          .Column.LabelPosition = "Left"
          .Controltype = "Textbox"
          .Textbox.Size = 20
          .Textbox.MaxLength = 20
          .Textbox.InLineStyle = ""
          .Textbox.IsPassword = .f.
          .hasWatermark= .f.
          .BreakType = "None"
          .nCols = 1
          .Column.Hide = .f.
          .Column.Heading = "Summary"
          .BaseFieldExpression = "Summary"
          .Column.Sort = "Summary"
          end with
          with tmpl.field_info[8]
          .Fieldname = "NextAction"
          .Scope = "Local"
          .DisplayFormat = ""
          .DisplayUnFormat = ""
          .ConditionalStyle = ""
          .ConditionalStyleLevel = "Cell"
          .ClientSideConditionalStyle = ""
          .ClientSideConditionalStyleLevel = "Cell"
          .QBEDisable = .f.
          .QBEInlineStyle = ""
          .Type = "C"
          .Updateable = .t.
          .Table_Alias = "Dialogues"
          .FieldToUpdate = "NextAction"
          .Varname = "NEXTACTION"
          .NullIfBlank = .f.
          .Initial_Value = ""
          .Column.LabelPosition = "Left"
          .Controltype = "Textbox"
          .Textbox.Size = 20
          .Textbox.MaxLength = 20
          .Textbox.InLineStyle = ""
          .Textbox.IsPassword = .f.
          .hasWatermark= .f.
          .BreakType = "None"
          .nCols = 1
          .Column.Hide = .f.
          .Column.Heading = "Nextaction"
          .BaseFieldExpression = "NextAction"
          .Column.Sort = "NextAction"
          end with
          with tmpl.field_info[9]
          .Fieldname = "NextActionDate"
          .Scope = "Local"
          .DisplayFormat = "time(\"{grid.clientSideDateFormat}\",<value>)"
          .DisplayUnFormat = ""
          .ConditionalStyle = ""
          .ConditionalStyleLevel = "Cell"
          .ClientSideConditionalStyle = ""
          .ClientSideConditionalStyleLevel = "Cell"
          .QBEDisable = .f.
          .QBEInlineStyle = ""
          .Type = "D"
          .Updateable = .t.
          .Table_Alias = "Dialogues"
          .FieldToUpdate = "NextActionDate"
          .Varname = "NEXTACTIONDATE"
          .NullIfBlank = .f.
          .Initial_Value = ""
          .Column.LabelPosition = "Left"
          .Controltype = "Textbox"
          .Textbox.Size = 20
          .Textbox.MaxLength = 20
          .Textbox.InLineStyle = ""
          .Textbox.IsPassword = .f.
          .hasWatermark= .f.
          .DatePicker.Display = .t.
          .DatePicker.UseComboBoxes = .t.
          .DatePicker.DateFormat = "<Default>"
          .DatePicker.LowYear = 1950
          .DatePicker.HighYear = 2050
          .DatePicker.SwitchYear = 20
          .DatePicker.IconNumber = 2
          .BreakType = "None"
          .nCols = 1
          .Column.Hide = .f.
          .Column.Heading = "Nextactiondate"
          .BaseFieldExpression = "NextActionDate"
          .Column.Sort = "NextActionDate"
          end with
          with tmpl.field_info[10]
          .Fieldname = "EditHistory"
          .Scope = "Local"
          .DisplayFormat = ""
          .DisplayUnFormat = ""
          .ConditionalStyle = ""
          .ConditionalStyleLevel = "Cell"
          .ClientSideConditionalStyle = ""
          .ClientSideConditionalStyleLevel = "Cell"
          .QBEDisable = .f.
          .QBEInlineStyle = ""
          .Type = "C"
          .Updateable = .t.
          .Table_Alias = "Dialogues"
          .FieldToUpdate = "EditHistory"
          .Varname = "EDITHISTORY"
          .NullIfBlank = .f.
          .Initial_Value = ""
          .Column.LabelPosition = "Left"
          .Controltype = "Textbox"
          .Textbox.Size = 20
          .Textbox.MaxLength = 20
          .Textbox.InLineStyle = ""
          .Textbox.IsPassword = .f.
          .hasWatermark= .f.
          .BreakType = "None"
          .nCols = 1
          .Column.Hide = .f.
          .Column.Heading = "Edithistory"
          .BaseFieldExpression = "EditHistory"
          .Column.Sort = "EditHistory"
          end with
          tmpl.RecNav.SuppressIfOnlyOnePage = .t.
          tmpl.RecNav.First_Label = "First"
          tmpl.RecNav.Has_First_Button = .t.
          tmpl.RecNav.Has_Last_Button = .t.
          tmpl.RecNav.Has_Next_Button = .t.
          tmpl.RecNav.Has_Prev_Button = .t.
          tmpl.RecNav.HTML_Template_source = "Computed"
          tmpl.RecNav.Justify = "Left"
          tmpl.RecNav.Last_Label = "Last"
          tmpl.RecNav.Next_Label = "Next"
          tmpl.RecNav.Number_of_page_links = 10
          tmpl.RecNav.Page_Numbering_Style = 3
          tmpl.RecNav.PagesTemplate_w_PageCount = "{PageNumber} of {PageCount}"
          tmpl.RecNav.PagesTemplate_wout_PageCount = "{PageNumber}"
          tmpl.RecNav.Position = 1
          tmpl.RecNav.Prev_Label = "Prev"
          tmpl.RecNav.Show_disabled_controls = .t.
          tmpl.RecNav.Show_Page_Count = .t.
          tmpl.RecNav.Use_Images = .f.
          tmpl.gridToolbarTemplate = <<%html%
          %html%

          tmpl.gridToolbarTemplateEditable = <<%html%
          %html%

          tmpl.style_name = "Corporate"
          tmpl.UseSimpleStyles = .t.
          tmpl.overrideStylesForJavascriptObjects = .f.
          tmpl.GUID = "41c07de2-6fdb-4887-90aa-11e29fb00979"
          tmpl.onlyIncludeSelectedFieldsInQuery = .t.

          Comment

          Working...
          X