Subscribe via FeedBruce Elgort, Jul 12, 2009 9:07:02 PM
The XPages Blog team would be happy to hear from you regarding questions you may have, topics you want to see us cover or an XPages resource you want to share. Click on the "Contact Us" link to send us a note.
8 responses to Got XPages questions and/or content?
Atharva, June 27, 2010 8:34 AM
I want to use a Xpage on another database in the current database. When i set the "Display Xpage instead" in form properties in the current database, it gives me the list of xpages in the current database. That's fine. But what if I want to keep the xpages in a totally different database and then use the xpage for the form in current database...
Thanks and regards, Atharva
Jeremy Hodge, March 3, 2010 2:59 PM
Your code fails because the line
var test='"config_value"';
is evaluated by the client during run-time, but the #{java_script:getClientId('...')} is evaluated when the page is rendered .. so you end up with the ssjs getClientId("") which generates your error 500 ... and to top it off, even if you could pass the value like that, the id does not remain "config_value", it gets translated to something like _view1:id0:parentContainer:config_value because each element has to have a unique ID, and with repeat controls, you can not get a unique ID if you specify the ID explicitly.
Is the element you want to acquire in a repeat control at any point? If its not then client side you can use dojo.query("[id$='config_value']")[0].value to reference the element's value (dojo.query returns the elements it finds in an array, so no need to do a document.getElementById.)
If it is in a repeat, you'll have to either know the id of a parent node that is unique, or you will need another way to identify which "config_value" item you want. Getting to the one you want may be a bit more difficult i you explain your use case a bit more, I can help you get there.
Karthick, March 3, 2010 2:25 PM
I have a Edit Box control with Name : "config_value"
I have a button control coded with the following client side java_script in it
var x=document.getElementById('#{java_script:getClientId("config_value")}').value
alert (x);
This alerts what ever I put into the editbox control when I click the button.
But when I split up the same code in the following fashion it fails.
var test='"config_value"';
var x=document.getElementById('#{java_script:getClientId('+test+')}').value
alert (x);
and the same gives me the following error message
The runtime has encountered an unexpected error.
500 Exception
Error while executing JavaScript action expression
Script interpreter error, line=1, col=1: Invalid component name
Can you please help me with the same. It is mandatory that I should pass the id through a variable as mentioned in the second code fragment. Please suggest me a work around for this issue
Paul Hannan, July 22, 2009 6:17 AM
I've a couple off the top of my head like...
How do you dynamically change the contents of any list selection control?
How does View Filtering work?
How does Full Text Sear work in XPages?
What's XPages story on server clusters?
Why is there only a subset of @Functions in XPages?
Sean Cull, July 14, 2009 7:01 PM
From doing some initial projects I would like to know more about ( this is a wish list but you did ask ! ) :
1) ( as Elijah ) how to work with a background agent and influence the return page : scenario would be an anonymous user requesting a password reminder and an agent running with server privelages checking to see if theyr are actually a registered user before coming back and advising so via the xpage - a la UKLUG ?
2) modal dialogs / input screens
3) In flex I can construct an "artificial view" using an agent or web service e.g. merging a current and an archived view from two databases or creating extra records to show the repeating nature of an equipment inspection or similar. I believe that this can be done in Xpages but have no idea how ! I guess it would be particularly challenging in that you would not necessarily want to bring all of the data back to the browser at once if it were a large "view"
4) making a password field appear hashed as you type in - e.g. registration form
5) is it possible to do data grids where all of the data is loaded into the browser and you can scroll through it very quickly, click columns to sort, filter dynamically etc.. as you would do in flex
Cheers, and thanks for your blogs, Sean
Elijah Lapson, July 13, 2009 1:57 PM
I would love a basic run down of the equivalent of submitting a form (Xpage) with an acknowledgment. Old way is using a $$Return field on a Form to send you to another Form with a nice message for the end user. Some thing like "Thanks for submitting...blah blah". On the second form either a Meta Refresh or javascript redirects you back to a view (or form with embedded view) which includes their submitted document. This newbie here wants to see a walk through (really basic example) of the basic equivalent on an Xpage. Our end users like to know explicitly that their data has been saved. :)
Elijah
Alexey Katyushyn, July 13, 2009 9:50 AM
Hi!
How to implement dialog in xPages?
Usually i use notesUIWorkspace.PickListCollection or notesUIWorkspace.PickListStrings and @PickList.
Also need similar to notesUIWorkspace.DialogBox and simple dialog ( "messagebox" or @Prompt ).
Other topics:
http://ideajam.net/ideajam/p/ij.nsf/ProductByCategory?openview&restricttocategory=xpages&count=1000
Patrick Kwinten, July 13, 2009 7:46 AM
hej, well the amount of articles on XPages is starting to grow which is ofcourse good. What I do not read so much is how to create your own themes to radical change your applications on the fly...