Does anyone know how to add user id to the Excel header or footer? I know I can set it in a macro but I'm trying to avoid it. Is there any shortcut like &D or &t for user id?
there is no formula (in the header dialogue, or in Excel in general) that pulls the username. You would have to do VBA.
The user or author is not a prebuilt field that can be inserted into a header/footer like &[Page] for page number. The available header/footer elements are shown in the Header & Footer Tools, Design context menu (available once you are in View, Page Layout)
However, there are some prebuilt commands that will insert the current user as text (not an updateable field). Click the large Header menu button at the far left of the above image and insert <user> Page <page no> <date> or Prepared by <user> <date> Page <page no>. The same prepared phrases are available for the Footer.
These are accessed by Alt+J,H,H. They can also be assigned to the QAT or menu hotkey(s).
Related
We are using Custom SignUpSignIn Policy, and on our signUp form we have textbox, dropdown and a checkbox which are all required fields.
When a user does not fill in the necessary details,
for the text box, it is highlighted with red line around the text box and as we enter the text box, it says "This information is required." in red color text on top of the text box which is good.
But for the Dropdown and checkbox, a simple message "Missing required element [Country]" is displayed at the top of the form(not even red color text) and no highlighting on the field. User may not even notice that.
How can I achieve the same behavior as the textbox for dropdown and checkbox?
Thanks,
Wait for the ability to use JavaScript via the "shared domain" feature.
UserVoice item reference.
...as a result of ‘shared domains’ this means that you will be able to start using your tenant as a subdomain of a ‘shared domain’, in the form of {tenant name}.b2clogin.com where b2clogin.com is the ‘shared domain’. You will be able to run Javascript when you are running on this shared domain...
I just want a way for all the required field validation messages to display in Red ...
That you can achieve with custom CSS which you can do today.
But for the Dropdown and checkbox, ... , is displayed at the top of the form
Moving stuff around would require JavaScript.
I am using a Dynamic View Panel and would like to create a "Favorites" column in the view. The underlying view has a "Favorites" multivalue names field that contains all users that have flagged the document as a favorite. What I would like to do is to handle this conversion in a "Customizer" bean where I can compare the current user with the stored vales in the "Favorites" column and see if they are in the list. If they are I would present a "Green Star" icon (not a standard Notes icon) else I would present an empty star icon. I would also like to make the star icon live so if you click on the star it would toggle the favorite value in the database on/off.
How do I implement such a feature?
What are the DominoViewCustomizer methods I need to override? (looking at afterCreateColumn)
How do I get and set the column values? (really lost here)
How do I get the column to display a Notes resource image (my stars) or do I need to store it in a directory on server?
How do I make the star icon clickable?
How do I capture that click event?
Using Domino v9.0.1
If you don't have to use a dynamic view panel here's a way of doing it that will work with a view panel, repeat, or data table...
Use a "favorites" document for each user. Have it contain one multi-value item to store the Note IDs of all the documents the user favorited.
When the user logs on read the contents of the multi-value field into a sessionScope variable. Then in your view column all you need to do is check if the NoteID of the current row is in your sessionScope variable and display the appropriate icon.
For the part when a user clicks on a star you would have an event handler on that column that does a lookup to the user's favorites document (create it if it doesn't exist) and add or remove the NoteID then do a partial refresh on the view.
You can probably still do this with a dynamic view panel but I can't speak to the particulars of it since I don't use it much.
I'm trying to make a custom list for inquiries, where users will fill in some information such as "Name", "Reason" etc. When they've finished filling in the information and added the item, the administrator will then go through the item, and fill in some new columns that the user hasn't been able to fill in.
I hope you understand me, otherwise you're more than welcome to ask questions!
With SharePoint designer 2007, you can use the SPSecurityTrimmedControl who enable you to show/hide form field (or site action...).
Syntax :
<SharePoint:SPSecurityTrimmedControl PermissionsString="ManageLists" runat="server">
WHAT_YOU_WANT_TO_HIDE_HERE
</SharePoint:SPSecurityTrimmedControl>
For the PermissionsString, all values HERE
You'll need to use SharePoint Designer. You will create custom new and edit forms. This way when the user fills in the new form, only certain fields will appear. Then when the administrator edits the item using the edit form, they will have access to more fields.
Please see this link for more information.
Try making a copy of the form you wish to edit by copying and pasting to the same folder. Then click on the web part for the form and the code above will highlight . Look for tags IsVisible and change it from "true" to "false". This will hide the default form. Do not delete the original form.
Click on the web part in the design view then press your right arrow. This will move the cursor to right after the web part but still within the web part zone. Go to the Insert menu, select SharePoint Controls then Custom List form. A small dialog window will appear, select the list name from the first drop down, then select the content type from the second drop down. Finally select which form you want to insert, New, Edit or Display. Click OK. The new form will be displayed under the default form, and you will then see all of the fields in order and you can add or remove as you like.
If one did not want to edit the pages, couldn't one use Jquery to hide the fields? I have done this with SPservices. to check the user credentials if you will and then if matched display the hidden fields... all this is done from a web part...just a thought...I actually learned something great today.. great replies.
Add Floating Menu Item to the Page Library "E.g. Copy Item".
Once user selects option, It should
Copy entire selected row's information including Page.
Let user rename the page.
Create a new row in the same Page Library.
Save the copied information in the newly created row.
Thank you for your help
Instead of writing out the entire answer, here's some guidance on a way of doing this:
1) Create a CustomAction in the EditControlBlock for the Page Content Type (or related) containing a UrlAction that goes to a custom ASPX Page, passing required parameters through the aforementioned UrlAction (look into {ListId} and {ItemId} tokens). In this ASPX page, have a field to enter the new Page Name, and then a button to complete the copy and return to the list.
Here is a good starting point:
http://msdn.microsoft.com/en-us/library/ms460194%28v=office.12%29.aspx
Everything else in bold you should research.
I am new to sharepoint 2007. I have a following requirement.
1) I would to create a custom list for employee where they can select the item and fill-out the form and submit.
Example : List --> Hard Disk --> Click --> Create new list -->
List has following fields 1) EmpID 2) Customer name (Text) , 3) Order Date, 4) Qty 5) Price
Once user submit the list then I would like to disable the EMPID field and allow same user to edit the other fields if required.
How can I disable the text field (Empid) in the Sharepoint 2007 ? I would appreciate any other alternate or better idea.
Thanks,
Regards
Vick
I would use jQuery for this purpose. Here is an example that describes how to hide a text field on a SharePoint form. Change the .hide() to .attr('disabled','disabled') and this will disable the text field.
If you need help with deploying jQuery, see this question.
I am not sure its a better idea or not, but for that i used to do for this common scenario
that
fist identify the textbox id in html source (through web browser view source) after that i wrote javascript function to disable textboxes i.e. EMPID or we can do through style sheet and apply style using javascript..
You can create multiple content types for the same list. Have the user fill out the content type that contains the EmpID field (put a link in the LeftNav that sends them to NewItem.aspx with the proper ContentTypeId). Make the default content type the one without the EmpID, so when they go back in and edit they won't see that EmpID field.
The downside to this is that they'll see both content types in the New button dropdown. You can name them in a way that makes sense (New Hard Disk Order, Edit Hard Disk Order)