Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • IBM Forms wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search

Categories

Tag Cloud

  • 3.0
  • 3.5
  • 3.5.1
  • 4.0
  • 4.0.0.1
  • 4.0.0.2
  • 8.0
  • accessibility
  • actions
  • API
  • app dev
  • button item
  • buttons
  • C
  • certificates
  • COM
  • compute
  • computes
  • configuring
  • creating
  • defining
  • demonstration
  • demos
  • deployment
  • deployment scenario
  • design
  • design tips
  • Designer
  • designing
  • dev guide
  • develop
  • developing
  • differences between Webform Server and Viewer
  • education
  • Enablement
  • enterprise
  • error messages
  • events
  • field
  • field item
  • FileNet
  • filtering
  • form
  • formatting
  • forms
  • forms experience builder
  • Forms Services Platform
  • FSP
  • functions
  • getting_started
  • Help
  • IBM Forms
  • images
  • installing
  • integrating
  • integrating, 4.0.0.1
  • items
  • JAVA
  • JavaScript API
  • language
  • languages
  • layout
  • lf_intro
  • math functions
  • methods
  • new_user
  • options
  • P8
  • performance
  • pipelines
  • pipes
  • printing
  • programming
  • Properties
  • samples
  • services
  • signature item
  • signatures
  • spec
  • string functions
  • strings
  • StrJava
  • submissions
  • table
  • tables
  • text
  • training
  • translation
  • Turbo
  • turbo_media
  • tutorials
  • utility functions
  • video
  • Viewer
  • viewer package
  • Webform Server
  • WebformServer
  • XFDL
  • XForms
  • XPath
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > Best Practices for Form Design > Use unique scope identifiers for items
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Use unique scope identifiers for items 

expanded Abstract
collapsed Abstract
No abstract provided.
Signature best practice
Applies to Viewer Applies to Webform Server

Scope identifiers, or sids, uniquely identify each item within the XFDL code. Each item on a page should have a different sid to differentiate it from other items on that page. You may use the following characters: a-z, A-Z, 0-9, dollar sign ($), and underscore (_). Spaces are not permitted.

Each item should have a unique sid to so that the Viewer and Designer can tell them apart. Older versions of the Viewer allow forms to contain duplicate sids, but treat them unpredictably. For example, computes involving two items that share the same sid, called duplicate sids, may behave incorrectly, or may not function at all. As a result, when hand-coding forms you should create unique sids for each item on every page. It is good practice to choose sids that describe the purpose of the item, such as "Print_Button".

If you create your forms using the Designer , it automatically creates unique sids by numbering each item as it is created. For example, LABEL1, LABEL2, and so on.

Note:
If you open a hand-coded form in Designer 2.0 or later or Viewer 4.5 or later, duplicate sids are automatically flagged as errors and you will not be able to complete the form.

Example


You must establish sids in the first line of an item's code, as shown in the following example:

<button sid="Print_Button">


However, items on separate pages may have duplicate sids. For example, if you had a print button on multiple pages, each button's sid could be "Print_Button", as shown below:

<page sid="PAGE1"> 

  <global sid="global"></global> 

  <label>PAGE1</label> 

  <button sid="Print_Button"> 

     ... 
</page> 



<page sid="PAGE2"> 

  <global sid="global"></global> 

  <label>PAGE2</label> 

  <button sid="Print_Button"> 

     ... 

</page>


Duplicate sids on separate pages are permitted because each item’s reference includes the sid of its page. Therefore, if a compute involved the first button in the code above, the full reference would be:

PAGE1.Print_Button

This allows the Viewer to differentiate between buttons with the same name on different pages.

Exceptions to this practice


There are no exceptions to this practice.

Back to: Signatures

expanded Article information
collapsed Article information
Category:
Best Practices for Form Design, Forms Designer, Forms Viewer, Signature Best Practices, Webform Server,
Tags:
signatures, sid

This Version: Version 8 March 21, 2011 3:52:04 PM by Neal A Timpe  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (8)
collapsed Versions (8)
Version Comparison     
Version Date Changed by               Summary of changes
This version (8) Mar 21, 2011 3:52:04 PM Neal A Timpe  
7 Dec 2, 2010 7:31:42 PM Deanna Drschiwiski  
6 Dec 2, 2010 6:12:03 PM Jack Mitchell  
5 Apr 15, 2009 5:11:17 PM Deanna Drschiwiski  
4 Sep 8, 2008 6:09:43 PM Deanna Drschiwiski  
3 Jun 12, 2008 2:09:51 PM Adam Kozyniak  
2 Jun 10, 2008 6:22:44 PM Adam Kozyniak  
1 Jun 9, 2008 7:19:15 PM Adam Kozyniak  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use