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



Jan 13, 2012, 9:25 AM
37 Posts

How Read and Store Multivalues field into repeat control for every line?

  • Category: Managed Beans in NSF
  • Platform: All
  • Release: 8.5.3
  • Role:
  • Tags: multivalues,field
  • Replies: 1
I would realized an Order Xpages that in backend fill this multivalues field:
1) QTA
2) Product Name
3) Price
 
I would realize a code that for every row of my table I can Edit, Modify, Save the value or Add a new line...
 
So that I think that the solution are use a ViewsScope initialized into BeforePageLoad event that set the ViewScope variable with this structure:
 
    var OrderLine = [];
            OrderLine.push({
                QTA : "1",
                ProductName : "KEYBOARD 102",
                Price : 1200,
            });
 
viewScope.products= OrderLine; 
 
 
Now into a repeat control I insert viewScope.products as Data and Row as variabile of my collectionname all work well...
( for every row I insert a InputTextField that bind to  Row.QTA, Row.ProductName, Row.Price)
but in read-mode so that I can't edit or add new value in live mode.
 
Can you have any Idea?
 
I need to implement the management bean solution?
Jan 30, 2012, 10:09 AM
261 Posts
Re: How Read and Store Multivalues field into repeat control for every line?
Daniel,
 
Your solution might work if you bind the fields directly to an (indexed) element of the array, instead of using the Row variable.
 
See also the comments to this article.

Mark
 
 

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