PDFVIEW - Set Name of File when user Save - filenames

The name when user to save is C__Windows_Temp_tmp721E.tmp.pdf.
How can I change this name for another?
The name when user to save is C__Windows_Temp_tmp721E.tmp.pdf.
How can I change this name for another?

Related

Lotus Domino web: How to copy some of field values in current document, save it to a new document and redirect the browser to open the new document

I need help in Lotus Domino Web. In the view, Last Name is clickable. When I click on one document (Last Name = e.g, Doe), the document will open and there would be a button named "Add Guest".
Once the Add Guest button was clicked, some of the field values in current document must be copied (Date Created, Time Created, Status), copied document must be saved, and copied document MUST open using PRINT (?EditDocument) so I can add some additional details in the document.
Note that this is Web, not Client.
Screen shot of view with last name, and current document with Add Guest button.
Any help will be really appreciated.
I am assuming you have written a WebQuerySave agent using LotusScript, the DocumentContext is the variable 'context' and the copied document is the variable 'newdoc'.
After you save the new document...
print "[http://" + context.Server_Name(0) + "/" + newdoc.ParentDatabase.Filepath + "/0/" + newdoc.UniversalID + "?EditDocument]"
This must be the only print statement that executes in your agent.

How do i use set_focus_child to set focus to a text entry in gtkmm?

I have a dialog in which i ask the user to enter username and password. I match them with database. If the user field is empty, i show a message box telling the user that user id is blank. I want the focus to set to user id field. How do i do that in gtkmm? Is it possible to clear the existing contents of the user id?
l_user_id=m_user_id->get_text();
l_password=m_password->get_text();
if(l_user_id=="")
throw_dialog("Empty Field","Please enter a user name");
// i want to clear the user id field
// i want to set focus to user id field
Use Gtk::Widget::grab_focus() and Gtk::Entry::set_text.
l_user_id.set_text("");
l_user_id.grab_focus();

Lookup to picture name of picture library in sharepoint 2010

I have a picture library and I want to lookup to the name of picture in another generic list. I've tried:
lookupField.LookupField = "Name";
Then when I create a new item of this generic list, the picture lookup column show the list name of picture correctly, but after saving item this column is changed to blank.
Am I doing anything wrong here? Do I have to use other internal field name instead of "Name"?
Pleaze help...
OK, I found another solution. because I can not lookup to default name of picture library, so I create a hidden text field for picture library. This hidden field will get value of name in ItemUpdated event (no need ItemAdded because when I upload a new pic, it also called ItemUpdated <-- don't know why...)
public override void ItemUpdated(SPItemEventProperties properties) {
properties.ListItem["HiddenImageName"] = properties.ListItem["Name"].ToString();
properties.ListItem.Update();
}
Generic list will look up to this hidden field instead of default name field of Picture library

How to display the name of the last user who modified my Custom Domain Object in Petrel RPT?

What do I need to do so that the RPT window display the name of the last user who modified my custom domain object (and the date)?
On my DomainObject, I've implemented a LastModified property of type LastModifiedInfo but it doesn't seem to be enough.
How can this be done?
If you implement IHistoryInfo it will show the last record of the history in the RPT dialog.

get list name in sharepoint 2010

how to get current used list name. my scnerio is: i have a list said config. i have create one column say "test" whose datatype is "Managed Metadata". now after add this column.now when i edit this item and click on icon near to "test" column one dialog is open which is webtaggig.aspx something like that.
now, i had open my custom control in this page. when page opened , my control is loaded.
now on my custom control page load i want to get the list name programatically.
can any one suggest me how can i do this?
Have a look at the SPContext object. You would need something like SPContext.Current.List.Title to get the name or title of the current list.