Passing parameter into loadingoverlay

Paul Mulroney pmulroney at logicaldevelopments.com.au
Mon Jan 20 02:32:31 UTC 2025


Hi Martin

I think you have the parameters of your row object in the wrong order.

This is how we use loading overlays:

Do $cinst.$clientcommand('showloadingoverlay',row(pbLoading,$cinst.$objs.objRatesContent.$name,'Loading rates...'))

the row has these options:
1. pbLoading: True = show it, false = hide it
2. The object name to show the loading overlay on.  
3. The text of the loading overlay.

Regards
Paul.


> On 18 Jan 2025, at 4:52 am, Martin Obongita via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
> 
> Hello everyone,
> I'm looking at the sample library jsLoadingoverlay. I'm getting a process server error (reading 'elem') when I pass an integer value into the method showoverlay. This is my snippet.../*
> Calculate lMessage as con(pLineNum,'/',iList.$linecount,'DataGrid','Processing data. Please wait...')
> 
> Calculate lRow as row(kTrue,lMessage,'') ## show overlay in selected control, ie. PagedPane, List Control or Datagrid
> Do $cinst.$clientcommand("showloadingoverlay",lRow
> */
> Datatypes:iList : Instance var listlMessage : Local var charlRow : Local var rowpLineNum : param int
> 
> Anyone here, so kind, to point me in the right direction?
> 
> Martin Obongita.
> 
> 
> 
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 


I was going to wear my camouflage shirt today, but I couldn't find it.
-- 
Paul W. Mulroney                                            We Don't Do Simple Pty Ltd 
pmulroney at logicaldevelopments.com.au       Trading as Logical Developments
www.logicaldevelopments.com.au                   ACN 161 009 374 
Ph: +61 8 9458 3889                                       86 Coolgardie Street
                                                                         BENTLEY  WA  6102





More information about the omnisdev-en mailing list