Responses aren't accurate.. Multiple Choice Field
I need some guidance/help. I am using 'Multiple Choice Field's in FormCentral and I have inspectors completing forms and submiting responses. The issue is, if they make a choice selection and then change it, any and all changed come through to the responses, not just the one(s) they had selected at the time of submission. I can not have accidently selected items that where changed before submission coming through as if it were still selected.
Could you please add me as a Co-author to your form so I can take a look at it? My account is [email protected]
Jeff Canepa
Software Quality Engineer
Adobe Systems, Inc.
[email protected]
Similar Messages
-
Sharepoint designer workflow: condition on multiple choice field
Hello,
basically I want a set of actions based on the selection of a user saved in a multiple choice field.
For instance, the column named "Choices" has the possible values: Car, Bike, Bus, Plane
So i want a condition to check for the values that were selected (in pseudocode)
IF Choices contains "Car" then ....
IF Choices contains "Bike" then ....
IF Choices contains "Bus" then ....
IF Choices contains "Plane" then ....
But in the designer when i tried to implement such a condition, im not able to write this structure.
I can select the column in the if clause but then i can only select "equals" and "not equals" instead of "contains"
Moreover, the when I choose the related string as value it is not saved.
How can I implement this (normally simple condition) in SharePoint designer?Hi
use a calculated column, to set deppending on your chocie column with IF statement , next use that new calculated column in your next steps
http://msdn.microsoft.com/en-us/library/office/bb862071%28v=office.14%29.aspx
Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.
I cannot even reference a multiple choice field in a calculated column. A workflow to copy the vlaue does not help neiter:
Multiple Value Column Text Column
Auto,Roller,Motorrad,LKW ->
{"__metadata":{"type":"Collection(Edm.String)"},"results":["Auto","Roller","Motorrad","LKW"]} -
Placing lines of text beside multiple choice field in form
I want to place single lines of text beside the multiple choice field in this form (as drawn above) instead of one box of text. Is this possible?
Post the question in the forum for livecycle designer.
-
How to Multiple Choice Field + text
Can we create a multiple choice field AND allow the user to enter explanatory text, e.g., Check if you have:
Food Allergies. Decribe:What you want for this is to use skip (show/hide) logic. This way only if they answer Yes would they see the other field (paid subscription feature).
The skip and show/hide logic is explained here:
https://www.acrobat.com/formscentral/en/library/skip.html
Gen -
I would like to be able to use the rating scale as a multiple choice feild, so I can check multiple selections.
Hi;
If you are asking to be able to select more than one "rating" accross that is not supported (as I am sure you found), but I'd think you can achieve something functionally similar using rows of Multi-select fields and changing the formatting on them so that they have labels left or right, and uncheck the "Stack vertically" so that the choices are in a row, rows of fields could make rough columns (you could label the choices in just the top row/field or in all, same labels in all would align all of the rows choices). I know it would not be as ideal as in a table, there would be unnecessary space and things might not line up as well, but with some manipulation it could work.
Thanks,
Josh -
Can a form be created with a multiple-choice field?
I would like to create a form letter and in the body of the letter, the user would select one of three options for the final paragraph. Is this possible in pdf forms?
You can receive the responses in a email body but not as an attachment.
Please look at following link:
FormsCentral Help | Options
Regards,
Anoop -
SQL Dealing with multiple choice answers in a DB with no unique identifier
I am working with a Database that has forms set up with multiple select fields. As seen below, (Question_ID 2533) the Patient_ID, Visit_ID, and Question_ID are the same and there are 3 different answers that were chosen. I am trying to figure
out how to seperate these Multiple answers so I can use SSRS to pull them into seperate fields. I believe I know how to use SSRS to pull the data after I have differentiated each answer. I need help with the SQL code...
Patient_ID Visit_ID Form_ID Question_ID Answer_ID Answer
124 1685 164 2533 1490
Muscle pain
124 1685 164 2533 1492
Weight loss
124 1685 164 2533 1494
Shoulder joint pain
124 1685 164 2534
678 Good
124 1685 164 2535
678 GoodI was able to get the unique identifier by creating a new table using the ROW_NUMBER()OVER and PARTITION BY Functions. Then I was able to identify each answer of the multiple choice fields. Here is the full code.
CREATE TABLE Multiple_Answer(
Patient_ID INT,
Visit_ID INT,
Visit_Date DateTime,
Form_ID INT,
Form_Name nvarchar(255),
Question_ID INT,
Question_Name nvarchar(1000),
Answer_ID INT,
Answer nvarchar(1000),
Multiple_Answer INT)
INSERT INTO Medred_Reporting.dbo.Multiple_Answer
([Patient_ID]
,[Visit_ID]
,[Visit_Date]
,[Form_ID]
,[Form_Name]
,[Question_ID]
,[Question_Name]
,[Answer_ID]
,[Answer]
,[Multiple_Answer])
SELECT Patients.Patient_ID, Patient_Visits.Visit_ID, Patient_Visits.Visit_Date, Forms.Form_ID, Forms.Form_Name, Questions.Question_ID, Questions.Question_Name, Answers.Answer_ID,
Answers.Answer,
ROW_NUMBER()OVER
(PARTITION BY Patients.Patient_ID, Patient_Visits.Visit_ID,Forms.Form_ID,Questions.Question_ID
ORDER BY Questions.Question_ID)
AS Multiple_Answer
FROM Patient_Visits INNER JOIN
Patients ON Patient_Visits.Patient_ID = Patients.Patient_ID INNER JOIN
User_Visit_REL ON Patient_Visits.Visit_ID = User_Visit_REL.Visit_ID INNER JOIN
Users ON User_Visit_REL.User_ID = Users.User_ID INNER JOIN
Visit_Question_Answer_REL ON User_Visit_REL.User_Visit_ID = Visit_Question_Answer_REL.User_Visit_ID INNER JOIN
Symptom ON Visit_Question_Answer_REL.Symptom_ID = Symptom.Symptom_ID INNER JOIN
Question_Answer_REL ON Symptom.Question_Answer_ID = Question_Answer_REL.Question_Answer_ID INNER JOIN
Answers ON Question_Answer_REL.Answer_ID = Answers.Answer_ID INNER JOIN
Form_Question_REL ON Question_Answer_REL.Form_Question_ID = Form_Question_REL.Form_Question_ID INNER JOIN
Questions ON Form_Question_REL.Question_ID = Questions.Question_ID INNER JOIN
Protocol_Form_REL ON Form_Question_REL.Protocol_Form_ID = Protocol_Form_REL.Protocol_Form_ID INNER JOIN
Forms ON Protocol_Form_REL.Form_ID = Forms.Form_ID -
Populate a Floating Field from Multiple Choices in a Drop Down List
Hi, folks, it's been a while which means things have been going smoothly. But what I'm trying to do at the moment has me stumped.
I have a form that was originally made with a long section of checkboxes that our agents would check if the answers applied to the client's case. This meant that the client had a whole bunch of information that didn't apply to them on the form so I thought would be clearer for the client if the agent would select only those items that pertained to them in a List Box. I used a List Box for multiple choices because several choices could apply to their case. And I wanted those selections to relayout to a floating text field in a paragraph but for the life of me, I can't seem to make that happen. I tried switching to a Drop Down Field and that allows only one selection to relayout.
The paragrah reads "To proceed, we need the following information or the documents identified below:" and then the 15 items would be listed with the checkboxes.
Any suggestions as to how I should do this?What if you leave them as checkboxes and just put a pre-print event in each of the 15 items to make them visible or hidden based on their value?
Like this:
Jo -
Adobe Presenter 8 quiz multiple choice responses changing order
I published a quiz in Adobe Presenter 8.
After it was published, one of the multiple choice questions had the order of the responses literally listed as:
B)
A)
C)
D)
Instead of:
A)
B)
C)
D)
Has anyone ever experienced this before?
If so, is there a solution?
Thank you........Hi,
What do you see on the the pptx slide (not in the published output).
Is it
B)
A)
C)
D)
or
A)
B)
C)
D)
If it is the first one , Please change in the pptx slide and publish.
If it is the second one, try to republish.
If the Issue still exists, please inbox me the pptx as well as the published output at [email protected]
Thanks
Alpi Agarwal
Adobe Presenter Engineering Team -
Multiple choices and table fields
I am designing a form application now and I am stuck in some problems. One of them is related to multiple choices:
The application looks like question-answer style. E.x:
Funded goods before:
a. Bed b. Chair c. Computer d. Clothing e. Book
How do I save those answers? I mean do I need to create 5 fields in the table for saving the each above anwsers like:
create table Goods (Bed varchar(1), Chair varchar(1), Computer varchar(1)...)
If a, c, e are chosed, goods.bed = 'Y', goods.computer = 'Y', goods.Book= 'Y'.
Please give me help. Many thanks and waiting.No, you don't need to store them in a table. You will put 5 checkboxes next to each of the five choices and you will check the value of the combo if it is either 1 or 0. You will set the ValueWhenChecked property of the item to 1 and the ValueWhenUnchecked property of the item to 0 . So if the value of the checkbox is 0 then it is unchecked and when it is 1 it is selected.
So in your example you can write :
if ( :bed='1' and :computer = '1' and :book = '1' ) then
I hope i helped you.
Regards,
Bill... -
Hi All,
How do I make a field to be multiple choice (like selection-option) in
screens ?
thx,Hi,
you can use selection-screens in a subscreen of a dynpro:
1) define a subscreen (called subsi in this example)
in your dynpro (called 0100 in this example)
2) define the selection-screen in your programm like this:
SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN.
SELECT-OPTIONS: s_parm1 FOR ztable-parm1,
s_parm2 FOR ztable-parm2.
SELECTION-SCREEN END OF SCREEN 101.
3) define your PAI and PBO-moduls like this:
PROCESS BEFORE OUTPUT.
MODULE status_0100.
CALL SUBSCREEN subi INCLUDING sy-cprog '0101'.
PROCESS AFTER INPUT.
CALL SUBSCREEN subi.
Kindly regards, -
PDF Form: Multiple Choice sheet that displays a percentage based on answers provided
Hello,
Im trying to create a form that has 4 multiple choice questions, the answers to each being the values 0,1,2,3,4, 5 or N/A.
Once answers are given, I'd like the percentage to appear on the form.
I can't figure out how to do this, as the total fluctuates depending on if the response to one or more questions is "N/A".
I.e. if the answers were as follows: 4,4,4,4, the percentage would be 80% (16/20).
However, if the answers were: 4,4,4,N/A, the percentage would also be 80% (12/15) and NOT 60% (12/20).
I figure its a javascript thing - but alas I do not know Java.
Help Please!So you want to compute the percentage of the non-"N/A" selections using the count of selected items * 5 as the denominator and then use that value to divide the sum of the values for the non-"N/A" selections.
Has a default checked value been selected.
Since the averaging is not just computation of the mean based on the item count, you to create a custom JavaScript calculation.
var aNames = new Array("Radio Button.0", "Radio Button.1", "Radio Button.2", "Radio Button.3"); // array of field names
var aValues = new Array();
var sum = 0;
var count = 0;
var oField;
event.value = "";
for(i = 0; i < aNames.length; i++) {
// get values of fields into array;
oField = this.getField(aNames[i]);
if(oField == null) app.alert("Error getting " + aNames[i] + " field!", 0, 1);
else aValues[aValues.length] = oField.value;
if(aValues.length != 0) {
// sum the non-N/A vlaues in the array;
for(i = 0; i < aValues.length; i++) {
if(String(aValues[i]).toUpperCase() != "N/A") {
sum += Number(aValues[i]); // sum the non-N/A values;
count++; // count the non-N/a values;
// compute average if count not zero;
if(count != 0) event.value = sum / (count * 5); -
Keynote and multiple choice quizes
Does anyone know of a way to create a multiple-choice quiz with Keynote?
What I mean is, can you create links from a question page (with video and text) with 4 options and then create pages responding to the users' choice...correct or incorrect... then move onto the next question page etc...?
Is there a way to use the Hyperlinks function in Keynote for this purpose?
I plan to export to iDVD and have an interactive quiz DVD...
I remember doing something similar a while back with Powerpoint.
I like to push the boundaries and see what can be squeezed out of a piece of software...Sorry for the late response...
What do you mean by "I'm just saving them on my computer". Do you open the PDF with some application (which one?) and then do a save from that application?
You can send your PDF (with the missing border) to [email protected] with a reference to this post and I can have a look at it.
Gen -
Menu Button in ALV toolbar (multiple choices for a button)
Hi abapers,
I would like to have a button with multiple choices in the toolbar;
at the moment I have created a menu button with just one function.
Here is my code:
CLASS lcl_event_receiver (Definition)
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS:
handle_toolbar
FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object e_interactive.
ENDCLASS. "lcl_event_receiver DEFINITION
CLASS lcl_event_receiver (Implementation)
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD handle_toolbar.
DATA: ls_toolbar TYPE stb_button.
*Separator
CLEAR ls_toolbar.
MOVE 3 TO ls_toolbar-butn_type.
APPEND ls_toolbar TO e_object->mt_toolbar.
*Button
CLEAR ls_toolbar.
MOVE 1 TO ls_toolbar-butn_type.
MOVE 'EDIT' TO ls_toolbar-function.
MOVE icon_change TO ls_toolbar-icon.
MOVE ' Modifica'(l02) TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled.
MOVE 'Modifica' TO ls_toolbar-quickinfo.
APPEND ls_toolbar TO e_object->mt_toolbar.
ENDMETHOD. "handle_toolbar
ENDCLASS. "lcl_event_receiver IMPLEMENTATIONhi,
check this code and reward me if it helps you..
TYPE-POOLS : slis,icon.
*Structure declaration for tcodes
TYPES : BEGIN OF ty_table,
tcode TYPE tcode,
pgmna TYPE progname,
END OF ty_table.
*Structure for tocde text
TYPES : BEGIN OF ty_itext,
tcode TYPE tcode,
ttext TYPE ttext_stct,
sprsl TYPE sprsl,
END OF ty_itext.
*Structure for output display
TYPES : BEGIN OF ty_output,
tcode TYPE tcode,
pgmna TYPE progname,
ttext TYPE ttext_stct,
END OF ty_output.
*internal table and work area declarations
DATA : it_table TYPE STANDARD TABLE OF ty_table INITIAL SIZE 0,
it_output TYPE STANDARD TABLE OF ty_output INITIAL SIZE 0,
it_ittext TYPE STANDARD TABLE OF ty_itext INITIAL SIZE 0,
wa_table TYPE ty_table,
wa_output TYPE ty_output,
wa_ittext TYPE ty_itext.
*Class definition for ALV toolbar
CLASS: lcl_alv_toolbar DEFINITION DEFERRED.
*Declaration for toolbar buttons
DATA : ty_toolbar TYPE stb_button.
Data declarations for ALV
DATA: c_ccont TYPE REF TO cl_gui_custom_container, "Custom container object
c_alvgd TYPE REF TO cl_gui_alv_grid, "ALV grid object
it_fcat TYPE lvc_t_fcat, "Field catalogue
it_layout TYPE lvc_s_layo, "Layout
c_alv_toolbar TYPE REF TO lcl_alv_toolbar, "Alv toolbar
c_alv_toolbarmanager TYPE REF TO cl_alv_grid_toolbar_manager. "Toolbar manager
*Initialization event
INITIALIZATION.
*Start of selection event
START-OF-SELECTION.
*Subroutine to get values from tstc table
PERFORM fetch_data.
*subroutine for alv display
PERFORM alv_output.
CLASS lcl_alv_toolbar DEFINITION
ALV event handler
CLASS lcl_alv_toolbar DEFINITION.
PUBLIC SECTION.
*Constructor
METHODS: constructor
IMPORTING
io_alv_grid TYPE REF TO cl_gui_alv_grid,
*Event for toolbar
on_toolbar
FOR EVENT toolbar
OF cl_gui_alv_grid
IMPORTING
e_object.
ENDCLASS. "lcl_alv_toolbar DEFINITION
CLASS lcl_alv_toolbar IMPLEMENTATION
ALV event handler
CLASS lcl_alv_toolbar IMPLEMENTATION.
METHOD constructor.
Create ALV toolbar manager instance
CREATE OBJECT c_alv_toolbarmanager
EXPORTING
io_alv_grid = io_alv_grid.
ENDMETHOD. "constructor
METHOD on_toolbar.
Add customized toolbar buttons.
variable for Toolbar Button
ty_toolbar-icon = icon_generate.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button1'.
APPEND ty_toolbar TO e_object->mt_toolbar.
ty_toolbar-icon = icon_voice_output.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button2'.
APPEND ty_toolbar TO e_object->mt_toolbar.
ty_toolbar-icon = icon_phone.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button3'.
APPEND ty_toolbar TO e_object->mt_toolbar.
ty_toolbar-icon = icon_mail.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button4'.
APPEND ty_toolbar TO e_object->mt_toolbar.
ty_toolbar-icon = icon_voice_input.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button5'.
APPEND ty_toolbar TO e_object->mt_toolbar.
Call reorganize method of toolbar manager to
display the toolbar
CALL METHOD c_alv_toolbarmanager->reorganize
EXPORTING
io_alv_toolbar = e_object.
ENDMETHOD. "on_toolbar
ENDCLASS. "lcl_alv_toolbar IMPLEMENTATION
*& Form fetch_data
text
--> p1 text
<-- p2 text
FORM fetch_data .
Select the tcodes upto 200 rows from TSTC
SELECT tcode
pgmna
FROM tstc
INTO CORRESPONDING FIELDS OF TABLE it_table
UP TO 200 ROWS
WHERE dypno NE '0000'.
*Select the tcode textx
IF it_table[] IS NOT INITIAL.
SELECT ttext
tcode
sprsl
FROM tstct
INTO CORRESPONDING FIELDS OF TABLE it_ittext
FOR ALL ENTRIES IN it_table
WHERE tcode = it_table-tcode
AND sprsl = 'E'.
ENDIF.
Apppending the data to the internal table of ALV output
LOOP AT it_table INTO wa_table.
wa_output-tcode = wa_table-tcode.
wa_output-pgmna = wa_table-pgmna.
For texts
READ TABLE it_ittext INTO wa_ittext WITH KEY tcode = wa_table-tcode.
wa_output-ttext = wa_ittext-ttext.
APPEND wa_output TO it_output.
CLEAR wa_output.
ENDLOOP.
ENDFORM. " fetch_data
*& Form alv_output
text
--> p1 text
<-- p2 text
FORM alv_output .
*Calling the ALV
CALL SCREEN 0600.
ENDFORM. " alv_output
Calling the ALV screen with custom container
On this statement double click it takes you to the screen painter SE51.Enter the attributes
*Create a Custom container and name it CC_CONT and OK code as OK_CODE.
*Save check and Activate the screen painter.
Now a normal screen with number 600 is created which holds the ALV grid. PBO of the actual screen , Here we can give a title and *customized menus
*& Module STATUS_0600 OUTPUT
text
MODULE status_0600 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0600 OUTPUT
calling the PBO module ALV_GRID.
*& Module ALV_GRID OUTPUT
text
MODULE alv_grid OUTPUT.
*create object for custom container
CREATE OBJECT c_ccont
EXPORTING
container_name = 'CC_CONT'.
*create object of alv grid
CREATE OBJECT c_alvgd
EXPORTING
i_parent = c_ccont.
create ALV event handler
CREATE OBJECT c_alv_toolbar
EXPORTING
io_alv_grid = c_alvgd.
Register event handler
SET HANDLER c_alv_toolbar->on_toolbar FOR c_alvgd.
Fieldcatalogue for ALV
PERFORM alv_build_fieldcat.
ALV attributes FOR LAYOUT
PERFORM alv_report_layout.
CHECK NOT c_alvgd IS INITIAL.
Call ALV GRID
CALL METHOD c_alvgd->set_table_for_first_display
EXPORTING
is_layout = it_layout
CHANGING
it_outtab = it_output
it_fieldcatalog = it_fcat
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDMODULE. " ALV_GRID OUTPUT
*& Form alv_build_fieldcat
text
<--P_IT_FCAT text
FORM alv_build_fieldcat.
DATA lv_fldcat TYPE lvc_s_fcat.
CLEAR lv_fldcat.
lv_fldcat-row_pos = '1'.
lv_fldcat-col_pos = '1'.
lv_fldcat-fieldname = 'TCODE'.
lv_fldcat-tabname = 'IT_OUTPUT'.
lv_fldcat-outputlen = 8.
lv_fldcat-scrtext_m = 'TCODE'.
APPEND lv_fldcat TO it_fcat.
CLEAR lv_fldcat.
lv_fldcat-row_pos = '1'.
lv_fldcat-col_pos = '2'.
lv_fldcat-fieldname = 'PGMNA'.
lv_fldcat-tabname = 'IT_OUTPUT'.
lv_fldcat-outputlen = 15.
lv_fldcat-scrtext_m = 'PROGNAME'.
APPEND lv_fldcat TO it_fcat.
CLEAR lv_fldcat.
lv_fldcat-row_pos = '1'.
lv_fldcat-col_pos = '3'.
lv_fldcat-fieldname = 'TTEXT'.
lv_fldcat-tabname = 'IT_OUTPUT'.
lv_fldcat-outputlen = 60.
lv_fldcat-scrtext_m = 'Description'.
APPEND lv_fldcat TO it_fcat.
CLEAR lv_fldcat.
ENDFORM. " alv_build_fieldcat
*& Form alv_report_layout
text
<--P_IT_LAYOUT text
FORM alv_report_layout.
it_layout-cwidth_opt = 'X'.
it_layout-zebra = 'X'.
ENDFORM. " alv_report_layout
PAI module of the screen created. In case we use an interactive ALV or
*for additional functionalities we can create OK codes
*and based on the user command we can do the coding.
*& Module USER_COMMAND_0600 INPUT
text
MODULE user_command_0600 INPUT.
ENDMODULE. " USER_COMMAND_0600 INPUT
thanks,
gupta -
How to update SharePoint list columns including choice fields programmatically?
Hi All,
I have a requirement to update multiple columns (which are choice columns) in a SharePoint list. I'm a newbie at creating event receivers and timer jobs. Not sure which one to do and where to start first. There are approximately 4500
list items in the lists. I was thinking I could use one list to maintain the Keywords and perform updates or timer job to any targeted lists.
Scenario. Anytime a power user of the sharepoint list wants to update any of the choice field items or possibly even the column name itself, they want to be able to make updates to any of the list
items or other
lists that contain the new name. The columns I'm using are all choice fields named Assigned To, Division, Region, Job Title, Department, and Zone.
Here's sample code for Updating list:
using (SPSite oSPsite = new SPSite("team url/"))
using (SPWeb oSPWeb = oSPsite.OpenWeb())
oSPWeb.AllowUnsafeUpdates = true;
// get the List
SPList list = oSPWeb.Lists["Keywords"];
//Add a new item in the List
SPListItem itemToAdd = list.Items.Add();
itemToAdd["Title"] = "My Title Field";
itemToAdd["Assigned To"] = "Assigned To";
itemToAdd.Update();
// Get the Item ID
listItemId = itemToAdd.ID;
// Update the List item by ID
SPListItem itemToUpdate = list.GetItemById(listItemId);
itemToUpdate["Assigned To"] = "Assigned To Updated";
itemToUpdate.Update();
// Delete List item
SPListItem itemToDelete = list.GetItemById(listItemId);
itemToDelete.Delete();
oSPWeb.AllowUnsafeUpdates = false;
Any help is greatly appreciated. Please provide code sample and references. Thanks!Thanks Ramakrishna -- Here's what I have so far.
namespace MonitorChanges
class MyTimerJob : SPJobDefinition
public MyTimerJob()
: base()
public MyTimerJob(string sJobName, SPService service, SPServer server, SPJobLockType targetType)
: base(sJobName, service, server, targetType)
public MyTimerJob(string sJobName, SPWebApplication webApplication)
: base(sJobName, webApplication, null, SPJobLockType.ContentDatabase)
this.Title = "My Custom Timer Job";
public override void Execute(Guid contentDbId)
// Get the current site collection's content database
SPWebApplication webApplication = this.Parent as SPWebApplication;
SPContentDatabase contentDb = webApplication.ContentDatabases[contentDbId];
// Get a reference to the "ListTimerJob" list in the RootWeb of the first site collection in the content database
SPList Listjob = contentDb.Sites[0].RootWeb.Lists["ListTimerJob"];
// Add a new list Item
SPListItem newList = Listjob.Items.Add();
newList["Title"] = DateTime.Now.ToString();
newList.Update();
Talibah C
Maybe you are looking for
-
Adding field in material master
Hi All, I am trying to add field manufacture part number in material master. In field selection Manufacture part number (mara-mfrpn) field is optional. I checked the field selection group at material type level, transaction code field selection group
-
Subversion -- Problem After Deleting a File from Repository
I am using Dreamweaver CS6 and am using Subversion as a Repository server. In doing a massive check-in, Subversion reported an error with one file: SVN: #160024, Commit failed (details to follow): File or directory 'aff.php' is out of date; try updat
-
IPhoto and Facebook - Syncing issues with publication error
I am having trouble with the syncing function using the facebook icon at the bottom right of iPhoto '09. I create a facebook album with several photos, and it seems to take the appropriate time to upload the photos. But when I go to Facebook, there i
-
Customizing Task type (Status and Completed fields)
We have created our own "MDAction" custom type. The primary reason is that we need different values of "Status", and we dont want to mess with the built in "Task". We have created lists based on MDAction and it works fine but we have one issue: The u
-
I have a 1TB USB hard drive attached to my E3000 (current firmware), I use it for FTP and Shared Media on my network. Recently I have noticed that I have files out there that have 0 KB in size (file names/details are still these), I re-upload the fi