DF19.1 Drill-Down and side ways jump
Hi
In 19.1 and drill down model, with all the changes to the URL history and navigation path registering, it is still possible to do a side ways jump?
For example pre 19.1 I could do..
- Drill down to a select view from the dashboard.
- Select a record and in OnRowClick in my Web List object
[code]
// OnRowClick:
//
Procedure OnRowClick String sRowId
Send NavigateCancel
Send NavigateForward Of oZoomView Self
End_Procedure // OnRowClick
[/code]
This would then go back to the dashboard and forwards to the oZoomView view, I handle the record finding manually.
I know I can do the navigation differently, the normal path would be Dashboard -> oSelectView -> oZoomView
But I would like to know is a side ways jump still doable, and what's the best way of doing it in 19.1 with all the changes.
Cheers
Tom
Re: DF19.1 Drill-Down and side ways jump
It should be.
Look at the webOrderMobile sample, in the ZoomOrder.wo, the Add Line button.
It calls the oZoomOrderDetail, aparently pretty normal..
but then, selectInventory is shown, in a very special way.. This is handled internally at OnNavigatefoward of zoomdetail view. It detects the case and redirects to the select inventory, and then comes back to itself.
You could use a similar approach.
but I am sure there are other alternatives..
Regards
Re: DF19.1 Drill-Down and side ways jump
Hi Samuel
Thank you for pointing out that code. So rather than dealing with 2 navigation's at the same time, it's dealt with by each view. I.e. the Order view forwards to the Order Details view, then the Order Details view decides it needs to forward to the Inventory view.
I'll give that a go with my side ways jump, move back from Child1, then move forwards to Child2 from the Dashboard.
Is the right way to go DAW?
Re: DF19.1 Drill-Down and side ways jump
[QUOTE]I'll give that a go with my side ways jump, move back from Child1, then move forwards to Child2 from the Dashboard.[/QUOTE]
This is what I do. In Child1 I have this button.
[CODE]
Object oMessageBox is a cWebHtmlBox
Set piColumnSpan to 10
Set psHtml to '<a data-ServerOnClick="option" data-OnClickParam="1">Send us a message</a>'
Set pbServerOnClick to True
Procedure OnClick
Send NavigateCloseTo oDashboard Self
End_Procedure
Procedure OnGetNavigateBackData tWebNavigateData ByRef NavigateData Handle hoBackToView
Get NamedValueAdd NavigateData.NamedValues "NextLevel" "oZoomMessages" to NavigateData.NamedValues
End_Procedure
End_Object
[/CODE]
Back at the Dashboard, I check for the NextLevel value and navigate accordingly.
[CODE]
Object oCasesTile is a cWebHtmlBox
Set pbServerOnClick to True
Set piColumnSpan to 6
Set psCSSClass to "Tile Dark"
Set psHtml to '<div class="WebCon_Sizer" data-ServerOnClick="openview"><div class="Tile_Icon WebIcon_Find"></div><div class="Tile_TextUnderIcon">My Cases</div></div>'
WebRegisterPath ntNavigateForward oSelectCases Self // Child1
WebRegisterPath ntNavigateForward oZoomMessages Self // Child2
Procedure OnClick String sId String sParam
Send NavigateForward of oSelectCases Self
End_Procedure
Procedure OnNavigateBack Handle hoCallback tWebNavigateData NavigateData
String sNextLevel
//
Get NamedValueGet NavigateData.NamedValues "NextLevel" to sNextLevel
If (sNextLevel = "oZoomMessages") Begin
Send NavigateForward of oZoomMessages Self
End
End_Procedure
End_Object
[/CODE]
Re: DF19.1 Drill-Down and side ways jump
Cheers Dan, that seems like the way to do it.