This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Jul 21, 2016, 8:34 PM
8 Posts
topic has been resolvedResolved

Change Field Attributes with Lotus Script

  • Category: Domino Designer
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: LotusScript
  • Replies: 10

I would like to change the Form field's Hide When properties using Lotus Script.  So instead of modifying the Field's Formula code in the form to change when it shows up I want to be able to do doc.Field.HideWhen = True or doc.HideWhen("Field", False) and make the field disappear and reappear.

I'd also like to be able to do this for the field's other attributes: it's Font Color, size, etc.,

I haven't found a way to do this.  Is there a work around ?

Is this already a future enhancement for Quality Engineering scheduled ?

If not, could it be ? Who do I ask ?

Thanks !

Thomas

 

Jul 22, 2016, 12:21 AM
202 Posts
It's possible today using DXL
You'll need to analyse exported forms as DXL to figure out the attributes you need and want to change.

Domino Designer Help explains how to import/export DXL, and also lots of great articles if you search Google.
Jul 22, 2016, 2:54 PM
8 Posts
DXL

I haven't tried to export and import DXL. I have manually tried to change DXL and it changed the DXL but not the form properties that I was working with. So I stopped.

This looks a lot more involved than what it would require if the language is extended.

1) Can anyone recommend one article on importing and exporting DXL (Though looks complicated)?

2) Is there a path to request an enhancement ? It should be much simpler in my opinion..

Thanks !

Thomas

Jul 22, 2016, 5:38 PM
100 Posts
Ummm..you're new here, aren't you?

'Is there a path to request an enhancement ? It should be much simpler in my opinion'

These two statements resulted in what is known as 'a spit take'...luckily I missed my cpu...

The new feature request process starts with two chickens raised in a sterile bubble and fed only gold leaf covered organic non-GMO ancient grains raised by identical quintuplets born at 01:01:01 on the day of the 5th full moon of the year in a month with two full moons...it gets harder after that...

Sorry, all snark aside, change comes slow in this world. The platform is amazing and I really love it but new takes time so don't expect this to just show up tomorrow...

I don't do DXL so I can't provide code. If someone posts some specific resources, great, in the meantime:

https://duckduckgo.com/?q=how+to+use+dxl+to+change+notes+designs&t=hc&ia=web

Jul 22, 2016, 5:38 PM
100 Posts
Ummm..you're new here, aren't you?

'Is there a path to request an enhancement ? It should be much simpler in my opinion'

These two statements resulted in what is known as 'a spit take'...luckily I missed my cpu...

The new feature request process starts with two chickens raised in a sterile bubble and fed only gold leaf covered organic non-GMO ancient grains raised by identical quintuplets born at 01:01:01 on the day of the 5th full moon of the year in a month with two full moons...it gets harder after that...

Sorry, all snark aside, change comes slow in this world. The platform is amazing and I really love it but new takes time so don't expect this to just show up tomorrow...

I don't do DXL so I can't provide code. If someone posts some specific resources, great, in the meantime:

https://duckduckgo.com/?q=how+to+use+dxl+to+change+notes+designs&t=hc&ia=web

Jul 22, 2016, 6:16 PM
8 Posts
Change Field Attributes with Lotus Script

So it's possible... :)

Jul 22, 2016, 7:15 PM
100 Posts
Anything is possible

For example, I've complained here (because the forum feedback system constantly rejects my attempts to submit as I am unauthorized) about the weird double post thing that happens to some of us that doesn't happen in the 6/7 or 8 forum...as you can see...oh wait...still borked.

More seriously, I really do love Notes; I've made a good living doing design work for more than 20 years. The platform is flexible, easy to use, and offers lots of built in stuff that you generally need to build out in other environments (can you say security and replication?).

New features additions are incremental. I'd guess what you ask for is not a 'point release new feature' but would be something that might happen in R10 or later IF you can get anyone's attention and get it in queue. Your best bet might be to go to IBM Connect this winter and meet with the project managers; they're generally quite available and love to talk to folks. There are usually open sessions for Q&A, again, the folks are just awesome in these environments.

There may also be third party tools that could assist. I only use TeamStudio Configurator but there are a few high quality tool shops so poke around and see what pops up.

You could also see if there's anything at OpenNTF.org.

Good luck.

 

Jul 22, 2016, 7:15 PM
100 Posts
Anything is possible

For example, I've complained here (because the forum feedback system constantly rejects my attempts to submit as I am unauthorized) about the weird double post thing that happens to some of us that doesn't happen in the 6/7 or 8 forum...as you can see...oh wait...still borked.

More seriously, I really do love Notes; I've made a good living doing design work for more than 20 years. The platform is flexible, easy to use, and offers lots of built in stuff that you generally need to build out in other environments (can you say security and replication?).

New features additions are incremental. I'd guess what you ask for is not a 'point release new feature' but would be something that might happen in R10 or later IF you can get anyone's attention and get it in queue. Your best bet might be to go to IBM Connect this winter and meet with the project managers; they're generally quite available and love to talk to folks. There are usually open sessions for Q&A, again, the folks are just awesome in these environments.

There may also be third party tools that could assist. I only use TeamStudio Configurator but there are a few high quality tool shops so poke around and see what pops up.

You could also see if there's anything at OpenNTF.org.

Good luck.

 

Jul 25, 2016, 2:20 PM
323 Posts
Yeah, "what he said"

I do remember that back in what, 2007? IBM committed to exporting all attributes via DXL. And they are out there, don't get me wrong.

While hide-whens are um, there, I remember they're not particularly easy to access. I'm not sure what my particular issue was, but I couldn't get 'em to load into the element structure of the DOM objects. Or maybe (better for you) the callback wasn't firing at the right time to take advantage of the hide-when, very easily.

=shrug=, in any event, manipulating and rewriting the DXL is a little tricky, I remember that.

Jul 26, 2016, 3:20 AM
14 Posts
Note that hide-when isn't a field attribute...
I understand what you're getting at, but it's worth noting that the hide-when flags and formula aren't actually attributes of fields. They're attributes of paragraphs.
If you have multiple fields in one paragraph, you can't give each field different hide-when options, unless you put them in different cells of a single-row table.

The other things you mention (Font Color, size) can be set per field.

Another point of note is that, even if there was an easy way to programmatically change such things, it's probably unwise to do it often in any single database.
As I understand, the Notes client caches forms (though apparently not subforms) so, if you change anything on a form and some users have the database open in Notes at the time, they might not see the change until they close and reopen the database.

I've personally had very little need to programmatically change form designs.
It's usually faster just to make a change manually in Designer, and I've used DXL on the couple of occasions where it seemed like a time-saver.
Jan 11, 2017, 2:28 PM
1 Posts
Field Color Attribute
This might be not directly related but perhaps you could get some ideas on how to change field properties programmatically using LotusScript. Please refer to the details below:

Title: Is it possible to change the color of a Number field dynamically or programmatically?
Link: http://www-01.ibm.com/support/docview.wss?uid=swg21229456

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal