I would like to embed a view from another database in my freshly create xpage, please thank you. There is a wonderful diamond next to the field where I could hardcode the source databases server and filename.
Gladly I hit it to compute the value for it. Unfortunately, part of a lack of documentation, part of me being dumb probably, I am not able to figure out which value in there will open the database properly so I get the picklist with the views in it. Until now I was not able to compute a proper string, array, or whatever else is needed in there.
Any help on getting a dumb developer to succeed in working with oh so easy xpages would be very much appreciated. Has anyone a solution to this? The longer I work with xpages (or try to) the dumber I feel.
Subject: Check Designer help.
Hi,
The computed value must return a string that points to the server/database. The view likewise to a view name.
Some examples.
“SERVER/Domain!!database.nsf”;
@DbName();
Your correct. XPages does not execute in the client (should do for 8.5.1). It is a server side functionality. So you edit your database on your test server and just point a browser to the page to test.
Subject: originally I wanted to created a picklist
Thanks Simon, well I’ve been trying to get into xpages for quite a while. A lack of time hasn’t really helped at that. But neither the lousy implementation of the ide, correct me if I’m wrong. Buttons vanish when trying to edit properties and “features” like the one that made me struggle above don’t really help much.
Anyways, the original intention before I got lost in the xpage editor (aka notepad) was to create a picklist. I thought xpages were easy, and then Mark Hughes had to fiddle around 8 hours to get a working solution (see comment section here: http://www.codestore.net/store.nsf/unid/BLOG-20090521). That’s not what I call easy, and I’m glad that I’m not the only one.
I’m already considering skipping xpages for now and look for something else.
Is there a way of a not so cart before the horse way of implementing a picklist? Or is it just me ranting?
Subject: Buttons vanish?
I am not sure what you mean by buttons vanish. Can you give more details on reproducing that? Also you talk about notepad. Are you working from the source view? Or the design view?
I would strongly recommend the domino wiki. The developers did a number of movies which help.
Regarding picklist, via the wiki you can check out this link.
Subject: notepad. and buttons.
Hey Simon.
Well, i refer to the xpages related editors to as notepad, because forreal, they’re not much more than just that. some code highlighting and not as devastating as the lotus script editor (I wish eclipse would be used for that already, hopefully to come), but still. To me it seems that syntax checkign is almost inexistant, apart from very basic features (then again, maybe I’m just spoiled by how java IDEs do it).
The button(s). Yeah, I made some of them vanish. I thought I was doing something that was, well if not making much sense, but still a valid case. I put a field on an xpage and tried to pass some client - side javascript in the onblur event. In this code I wanted to pop up an alert with the fields content. I’m no javascript guru, true enough, but I think something like that should work and not break the editor (i was just playing around, trying to figure out how the ids work):
window.alert(window.document.getElementById(“#{id:MyField1}”))
Wether this code works or not doesn’t matter in this case, what matters is that once I entered this line I was never able to edit the code again. I had to delete the whole field and bring up a new one. I am able to produce this behaviour any time, on different computers.
Subject: …
Well noticed that the code just doesn’t execute in the development environment. Another wonderful feature of the fully blown xpage editor. Notepad, anyone?