What I want to do is have an agent where I create a document (a PDF at this point, so Java) and create a file then serve the file to the browser. All the examples I'm finding are showing how to do it all in via the writer where you write the text in (like the example in the xPages cheat sheet). I'm sure it's real simple, but I'm not seeing where I tell the code in the xpage I don't render to get the output of the agent I trigger.
I'm thinking I could create a NotesStream, get my file and hook it up it up to the "getResponse", but I can't find how to do that. Stephan says to use the stream, I just can't find a sample of how that goes from soup to nuts.
If someone gives me a working sample, I'll buy dinner.
InViewEdit to change field names
Thu, Mar 21st 2013 3:15p Brian Moore Now I've not dug deep into this, but I made an error today in classic Notes development. I've just installed Notes9 (named in honour of the great podcast Notes in 9 [joke]).
I'm working on an InViewEdit. I have two of them in this view, and they have the programmatic names of "useFT" and "useWE". They display values from the "generateFT" and "generateWE" fields. What I did was this:
If Colprogname(0) = "UseFT" Then
Call doc.Replace [read] Keywords: notes
Open DocLink in Frameset
Tue, Feb 26th 2013 12:09p Brian Moore I love have brilliant co-workers. I have been working on a project in classic Notes that sent out a view DocLink. I had a request for it to open the database in the frameset used for navigation. By default, a view DocLink will open the database to the default view tree. Workable, but not as nice as the frameset.
I mentioned this to my work partner David Jones and he tole me that if you name the target frame "NotesView" the view DocLink will open in the frameset. I tried it and it worked. Da [read] Keywords: lotus
NotesViewNavigator - turn off AutoUpdate
Fri, Jan 11th 2013 4:14p Brian Moore I'm a big fan of the NotesViewNavigator. I use it a lot since I can put a view together and see how data is supposed to act, then call from it. I make checklists, tables, documents, all sorts of thing out of it. One of the reasons I like it is because you can work on just a single category and inside the NotesViewNavigator "jump" from category to category if you want.
I was using this today and I was getting an error that it couldn't find the next sibling. I know there where 5, the d [read] Keywords: ibm
Clear out "ghost" attachments
Fri, Jan 11th 2013 10:12a Brian Moore For a project, I had to provide a way for users to select certain images to delete out of an XPage. Displaying and giving a checkbox to delete was easy - but then I had to actually delete the images. There could be any number of attachments (all images, so I don't need to worry about type), and the user should be able to delete any of the images.
Here is where my problem came up. I could delete the embedded objects from the NotesDocument no problem - but this left "ghosts" in the rich te [read] Keywords: agent
Fri, Nov 30th 2012 3:10p Brian Moore This is one of those "I've trooped all over the internet and found the answer sitting at my front door" posts. I'm working on an app, and I have a requirement that if the user tries to navigate away from the page without saving they will get a warning. It's a good idea, and it's something Notes does natively - not so in XPages. I cast around a bit and found onBeforePageUnload, a browser event that can be used in just this situation. So I did some digging trying to integrate it [read] Keywords: notes
All MIMEs little children
Wed, Nov 14th 2012 9:12p Brian Moore I've used a NotesStream to put a file in a Rich Text Field or MIME quite a number of times over the last few years. Recently, I've needed to expand on this and put multiple attachments in a field. I didn't find much on this, so I thought I'd post. The important trick seems to be setting a ParentEntity. In your typical MIMEEntity, which is "body" in all the examples (including this one) set body as a parent entity. Then create child entities for each file, and stream it in. Here [read] Keywords: lotusscript
Get the UNID for Custom REST service toGet method
Tue, Oct 30th 2012 7:15p Brian Moore I bypassed the out-of-the-box REST services to go directly into making custom REST services with the Extension Library. At the moment, I'm working on a couple, but for one I want to respond to a GET request. I've been doing POST, but this was new. The problem I found was how to determine what document I was acting on. The XPage didn't automatically (as far as I can tell) make a connection to the DominoDocument as a data source - even though I had the XPage set to this and to edit or [read] Keywords: notes
Are you sure you are registered for LotusSphere/Connect?
Fri, Oct 26th 2012 9:12a Brian Moore So I registered for LotusSphere yesterday. Something odd happened - I didn't get a confirmation number or email. This disturbed me since it is a pretty good chunk of change. This morning, still nothing to either of the email accounts I gave them. I really don't like having nothing at all back, not even a reference number. The website had sent me on to make my hotel reservation, which I did.
So this morning I called the customer support line. I was told that the LotusSphere reservation [read] Keywords: notes