PDA

View Full Version : cWebList



FrankValcarcel
8-Feb-2014, 11:24 PM
cWebList used at the View level.

When view is first shown the search popup will not popup when you start to type. Once you have clicked on a column header all works normally from then on. just after the initial Show.

Note - This does not happen with Modal Panel Prompt lists in examples. I could not find an example where a list was the top most view.

Harm Wibier
10-Feb-2014, 08:10 AM
Hi Frank,

That only works (by design) when the list actually has the focus. So I would expect it work immediately when the list is the first focussable control within the view.

Regards,

FrankValcarcel
10-Feb-2014, 08:14 AM
I agree it should only work when list has focus. But, it does not work even after I have clicked in the list, scrolled with the arrow keys, danced, sung and sacrificed a chicken. Until after I click on a header and re-sort it.

Harm Wibier
10-Feb-2014, 08:51 AM
Well... it might be that the JavaScript Engine doesn't know the sorting order. Does it indicate on which column it is sorted before you click the header (a little sorting arrow / triangle)?

FrankValcarcel
10-Feb-2014, 09:34 AM
There is no sort indicator displayed on any column on initial show. Setting piOrdering does not work, however setting piSortColumn to 0 works (sort indicator displayed and search works). Simplified code below incase I am doing something obviously wrong.



// C:\VDF_Area_18\vdfws\covecommon\AppSrc\WebActionsM anagement.wo
// Actions Management
//
Use cWebModalDialog
Use cWebPanel.pkg
Use cCoveWebButton.pkg
Use cWebPromptList.pkg
Use cWebColumn.pkg
Use cWebColumnLink.pkg
Use cWebColumnButton.pkg
Use WebActionsDetail.wo
Use actions.DD

Object oWebActionsManagement is a cCoveWebView
Set piColumnCount to 12
Set psCaption to "Actions Management"
//Set piWidth to 700
Set piHeight to 400
Object Actions_DD is a Actions_DataDictionary
End_Object
Set Main_DD to Actions_DD
Set Server to Actions_DD

Object oWebMainPanel is a cWebPanel
Set piColumnCount to 12
Object oGrid is a cWebList
Set pbFillHeight to True
Set piColumnSpan to 12
Set piOrdering to 2 // Do not work
//Set piSortColumn to 0 // Works

Object oActionsACTION_NO is a cWebColumn
Entry_Item Actions.ACTION_NO
Set psCaption to "Action#"
Set piWidth to 220
Set pbSortable to True
End_Object
Object oActionsSOURCE is a cWebColumn
Entry_Item Actions.SOURCE
Set psCaption to "SRC"
Set piWidth to 90
Set pbSortable to True
End_Object
Object oActionsIDENT is a cWebColumn
Entry_Item Actions.IDENT
Set psCaption to "Ident"
Set piWidth to 160
Set pbSortable to True
End_Object
Object oActionsCOMPANY is a cWebColumn
Entry_Item Actions.COMPANY
Set psCaption to "Company"
Set piWidth to 600
Set pbSortable to True
Set pbSortable to True
End_Object
Object oActionsDESCRIPTION is a cWebColumn
Entry_Item Actions.DESCRIPTION
Set psCaption to "Description"
Set piWidth to 800
End_Object
Object oActionsACCOUNT is a cWebColumn
Entry_Item Actions.ACCOUNT
Set psCaption to "Account"
Set piWidth to 200
Set pbSortable to True
End_Object
End_Object
Object oOkButton is a cCoveWebButton
Set psCaption to "OK"
Set piColumnSpan to 2
Set piColumnIndex to 6
Procedure OnClick
Send Ok of oPromptList
End_Procedure
End_Object
Object oCancelButton is a cCoveWebButton
Set psCaption to "Cancel"
Set piColumnSpan to 2
Set piColumnIndex to 8
Procedure OnClick
Send Cancel of oPromptList
End_Procedure
End_Object
End_Object
Set pbServerOnShow to True
Procedure OnShow
Send Clear to Actions_DD
Send Find of Actions_DD FIRST_RECORD Index.2
End_Procedure

End_Object