It looks like certain merge fields show up as java.lang objects when in search mode.
See picture below.
It looks like certain merge fields show up as java.lang objects when in search mode.
See picture below.
BTW you can not use these on your controller-bar!
because it is showing the recordcount of the controller-bar and not the current controller.
As far as I know there is no: currentcontroller.recordIndex
mattman:
It looks like certain merge fields show up as java.lang objects when in search mode.
Should they show blank?
Fixed in the next beta release (b6)
BTW you can not use these on your controller-bar!
because it is showing the recordcount of the controller-bar and not the current controller.As far as I know there is no: currentcontroller.recordIndex
Is there anyway to have this functionality? Just for me?
I would love a currentcontroller.recordIndex parameter.
Providence
currentcontroller.recordIndex works, actually, although it appears that it has been superseded in 2.1 with:
currentcontroller.getSelectedIndex and
currentcontroller.setSelectedIndex
It doesn’t seem to work on merged text!
If I understand what you’re trying to do…
Have you tried populating a global field with currentcontroller.getSelectedIndex in a method that fires onRecordSelect? - and then using the global in the merge field? I do this to show the number of the current record in my controller.
Also, you might be able to get it to work in a calculated field, too, without an onRecordSelect method, though I havent tried that…
Like this, for those that are curious:
globals.gRecordIndex = forms.contact_main.controller.getSelectedIndex();
globals.gMaxRecordIndex = forms.contact_main.controller.getMaxRecordIndex();
Providence1:
It doesn’t seem to work on merged text!
did you enable the useTags Property on the label or field?