Select List item with closest upcoming date
Hello!
I am creating a workflow for SharePoint 2010 using SharePoint Designer 2010. I do not have Visual Studio, and then ONLY tool I have is SharePoint Designer 2010.
I have a workflow and need to create a custom variable that is the title field of a Project list item.
The list items needs to be chosen by three criteria -
1) It needs to be an item where the project field = ProjectX
2) It needs to have a status that is not "Complete"
3) Iit needs to be the one where the Start Date is the closest to [Today]
That is, find which task in Project X is the next one to being.
Once again, this must be done in SharePoint Designer 2010, or with calculated columns.
Thanks!
Tom
I'm thinking that we can set the default view of this list such that it filters for Start Date >= Today and then sort by Start Date. When the Workflow runs through the list, if it uses the default view, then the first returned item will be what it uses.
I can't test that right now, but I think it's worth a try.
Andy Wessendorf SharePoint Developer II | Rackspace [email protected]
Similar Messages
-
Increase value of Select List Item with a Button
Hi all,
I've got an apex appli which is working well.
In one report page I use a select list with a LOV, but I want to "enhance" this functionality:
I need a kind of button which increments the item-value of the select list by 1,
so that the user can easily skip to the next value of the LOV without scrolling thru the select list.
Unfortunately I dont't get it working. Has anyone an idea how to realize that?
thanks in advance
FrankHello Frank,
Assuming your select list item is called P1_SELECT, you can define an HTML button, next to the item, that will do the trick.
In the Post Element Text field of P1_SELECT, you can have similar code to the following:
<input type="button" value="Next Value" onclick="$x('P1_SELECT').selectedIndex+=1;" />Hope this helps,
Arie. -
Help with select list item and dynamics action
G'Day Apex Gurus,
I having problems trying to achieve to trigger the help window of a select item automatically. A help window is triggered when the select item label is clicked but my client would like to be triguered automatically as soon as the user click to see the options in the select list.
I think that I should be able to do it with dynamic actions but I can not get it to work.
I know when someone click on the label of the select list item trigger this JavaScript
javascript:popupFieldHelp('277938589795252851','1545903379570909')
So I want to trigger the javascript also when the user click of the select list item and pull down the options and for that I think that Dynamic actions is the way to go but I can't get it right.
This is what I a doing:
I created a Dynamic option as follow:
Name : test
Sequence: 30
Even: Click
Selection type: Item(s)
Item(s): P1_RATING <- a selection list item
Condtion: - No Condition -
True Actions
Sequence: 10
Action : Execute JavaScript Code
Fire when event result is :True
Fire on page load: ticked
Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
I appreciate any one who can tell me what i am doing wrong here or provide a solution to my problem of achieving to trigger the help window of a select item automatically.
Kind regards
CarlosHi Carlos,
I set up a test case in exactly the same way and it worked fine for me. I created a page item called P1_DA_DEMO and added some static select list values then added some help text. The settings I used are below, I suggest you try again but also make sure you have no other Javascript errors on the page. Use a tool like firebug to check.
Name : Dynamic Action Demo
Sequence: 10
Even: Click
Selection type: Item(s)
Item(s): P1_DA_DEMO <- a selection list item
Condtion: - No Condition -
True Actions
Sequence: 10
Action : Execute JavaScript Code
Fire when event result is :True
Fire on page load: Not Ticked
Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
Event Scope set a s Bind.
Thanks
Paul -
Standard report(for open PO order items) with estimated Delivery dates
hi friends
i would like to know if there is any standard report(for open PO order items) with estimated Delivery dates on it.
thanks
alahariME2M (by material)
ME2L (by vendor)
ME2N (by number)
Use selection parameter WE101 for open GR
and scope of list EINT (scheduling lines) -
How to make a automatic list (item) with request
Hello,
In first i'm french so i'm sorry for my bad english!
I want to make a list (Item i think) where data are comming from my DB.
So when i will clic on the list i will see all the employe
I don't want to put each employe one by one with the option values
It will be a request
thanks for your help and if you have any question ask me
I want insert this code in my list after correction
<?php
$username="hr";
$paswd="hr";
$dbstring="//localhost/XE";
$db_conn= ocilogon($username,$paswd,$dbstring);
$query = "select * from cat";
$stmt=OCIParse($db_conn,$query);
OCIExecute($stmt,OCI_DEFAULT);
print'<table border="1" cellspacing="0" cellpadding="3">';
print'<tr>';
for($i=1;$i<=ocinumcols($stmt);$i++)
print '<td class="e">'. ocicolumnname($stmt,$i).'</td>';
print'</tr>';
while (OCIfetch($stmt)) {
print'<tr>';
for ($i=1;$i<=ocinumcols($stmt);$i++)
print '<td class="v">'. ociresult($stmt,$i).'</td>';
print '</tr>';
print'</table>';
OCIFreeStatement($stmt);
OCILogoff($db_conn);
?>Something has to print out a basic list of choices one by one (unless, perhaps, you use Smarty).
$conn = oci_connect("hr", "hr", "//localhost/XE");
$stmt = "SELECT employee_id, last_name from employees order by last_name";
$stid = oci_parse($conn, $stmt);
oci_execute($stid);
$num = oci_fetch_all($stid, $res);
if ($num) {
echo "<form method=\"POST\" action=\"{$_SERVER['PHP_SELF']}\">\n";
echo "<select name=\"EmployeeName\">\n";
for ($i = 0; $i < $num; $i++ ) {
echo "<option value=\"{$res['EMPLOYEE_ID'][$i]}\">";
echo htmlentities($res['LAST_NAME'][$i]);
echo "</option>\n";
echo "<input type=\"submit\" value=\"OK\">\n";
echo "</select></form>\n";
}Also check out utilities like http://pear.php.net/package/HTML_QuickForm
If you want to use XMLHttpRequest, look for AJAX toolkits.
-- cj -
Populate list Item with a recordgroup?
Hi Friend
I want to populate a list Item with a "Recordgroup". Does it possible without using the add_eliment function?
I did it through the Loop to read the item from record group. If the database changes the record does not change in my list item. because the list containing the added items which was delivered in the load time. But like Pressing F9, we can easily see the last changed data of the database.
If possible please send me the detail code to me. Here I delivered the detail procedure which i did for that purpose.
Farhad
==========================================================
PROCEDURE Populate_Item_In_List ( List_name VARCHAR2,
QUERY_Text VARCHAR2,
rg_Level_Col_name VARCHAR2,
rg_Value_Col_name VARCHAR2) IS
HERE THE PROCEDURE POPULATE THE LIST WITH THE REQUIRED DATA UNDER A CORRCET SQL (SELECT) COMMAND
List_name THE LIST ITEM WHICH HAS TO BE LOADED BY THIS PROCEDURE
QUERY_Text THIS CONTAINS THE QUERY TEXT BY WHICH THE LIST ITEM WILL LOAD
rg_Level_Col_name THIS IS THE LEVEL OF THE REQUIRED ITEM THAT OBVIUSLY A CHAR DATA TO BE RETRIVE
rg_Value_Col_name THIS IS THE VALUE OF THE REQUIRED ITEM THAT OBVIUSLY A NUMBER DATA TO BE RETRIVE
R_Group RecordGroup;
Rowcount NUMBER;
rg_name VARCHAR2(40) := 'DefaultRG';
rg_id RecordGroup;
errcode NUMBER;
Lid Item;
BEGIN
--+++++++++++++++++++++THIS IS USED TO POPULATE THE RECORD GROUP+++++++++++++++++++++++++++++++++
rg_id := Find_Group(rg_name); Find the record group +
--+
IF Id_Null(rg_id) THEN --+
rg_id := Create_Group_From_Query(rg_name,Query_Text); --+
errcode := Populate_Group(rg_id); --+
else --+
errcode := Populate_Group_With_Query(rg_id,Query_Text); --+
END IF; --+
--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
If errcode = 1403 then
Message('There is no data to be retrive......');
else
--+++++++++++++++++++++THIS IS USED FOR LOADING DATA TO THE LIST ITEM++++++++++++++++++++++++++++
Rowcount := Get_Group_Row_Count(rg_id); Counting the total rows in RGroup +
Lid := Find_Item(List_name); --+
Clear_list(Lid); Clear the list which is loaded now +
FOR J IN 1..Rowcount LOOP --+
Add_List_Element(List_name, the name of the list item +
J, index of the list +
Get_Group_Char_Cell('DefaultRG.'||rg_Level_Col_name,j), Level of item+
Get_Group_Number_Cell('DefaultRG.'||rg_Value_Col_name,j) value of item+
); --+
END LOOP; --+
--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
end if;
END;
===============================================================Hi Farhad,
You can make use of Populate_List built-in.
Populate_List(list_id, 'RECGRP');
You can find more information in online documentation of forms.
Cheers
Zakiy -
Set Default Value of Multi-select list item
I have a multi-select list item I want to default the value of to '%' (which is really '%null%') and have it selected. I tried setting default value of item, but it doesn't take '%null%'. I also tried a computation with a static of
:P507_ITEM := '%null%'; How do you get the default value set and selected?Hi
Shijesh is right, you need to change your null return value and use that return value as your default. Try and use something of the same datatype as your real return values if you plan to use '%' to display all as it will make your queries simpler. eg.
Company A returns 1
Company B return 2
% returns 0
Then your query would be...
SELECT ...
FROM ...
WHERE company_id = DECODE(:P_COMPANY,1,1,2,2,0,company_id)
Hope this makes sense.
Cheers
Ben -
FPBW: Extract Open Items with a posting date in the future
Dear all,
I'm are currently searching for possibilities to extract Open Items with a posting date in the future from SAP IS-U 4.72 into SAP BW 3.5.
Currently I'm using the Business Content extractor 0FC_OP_01 together with the mass transaction FPBW in IS-U.
The problem I'm facing is within the mass transaction FPBW. I've have set the key date at 01.11.2007, but this job already runs for 52.000 seconds on the same database select-statement.
Does anybody know a possible solution to improve the performance of the statement below? (I pasted it from the process overview)
================================
SELECT
/*+
INDEX("DFKKOP" "DFKKOP~1" "DFKKOP^1" "DFKKOP____1" "DFKKOP____1__X" "DFKKOP_1")
"BETRH" , "BETRW" , "BUDAT" , "BUKRS" , "FAEDN" , "GPART" , "GSBER" , "INKPS" , "SPART" , "VKONT" ,
"WAERS" , "MAHNV" , "ABWBL" , "APPLK" , "AUGBD" , "AUGBL" , "AUGBT" , "AUGDT" , "AUGRD" , "AUGST" ,
"AUGWA" , "BLART" , "BLDAT" , "EMGPA" , "GRKEY" , "HVORG" , "MANSP" , "MWSKZ" , "OPBEL" , "OPSTA" ,
"OPUPK" , "PERSL" , "PYMET" , "QSSHB" , "SBETW" , "SPZAH" , "STUDT" , "TVORG" , "VTREF" , "XBLNR" ,
"XMANL" , "HKONT" , "OPUPZ" , "OPUPW" , "STAKZ" , "WHGRP" , "AUGBS" , "XANZA" , "XRAGL" , "ABWTP" ,
"ASTKZ"
FROM
"DFKKOP"
WHERE
"MANDT" = :A0 AND "AUGST" = :A1 AND "GPART" BETWEEN :A2 AND :A3 AND ( "AUGDT" = :A4 OR "AUGDT" > :A5
AND ( "BUDAT" <= :A6 OR "AUGBD" <= :A7 ) OR "WHGRP" <> :A8 AND "OPUPW" = :A9 )
ORDER BY
"AUGST" , "GPART"#
=================================
I have already tried to create an index on the following fields (in the same order):
- MANDT Client
- AUGST Clearing status
- GPART Business Partner Number
- AUGDT Clearing date
- BUDAT Posting Date in the Document
Any help would be appreciated!
Thanks in advance,
Steven GrootHi Marcos,
When you have created the Restricted keyfigures for Open Items, You have to add the date characteristic on which you are looking open item and add the variable there.Here you have to use a variable of type Interval and select the operator "<" the date of the Variable.If you go through, there are standard variable for keydate, which you can use directly.
Hope you got the idea
Regards
Happy Tony -
How to make a single payment for different open items with same due date
Hi,
I have created a payment method and selected "Payment per due day " option in payment method company code settings.
Even I have selected that option, Payment will not happen grouping for the items with same due date
for ex : I have two open items with one due date and another open item with another due date so when I am trying performing F110 system should make a single payment for the item with same due date and seperate payment for another item.
But system making single payment for all items
Could you please suggest anything how to make a seperate payment with due date.
Regards
VK GUPTAHi,
Please check Vendor Master data: FK02 ->company code data -> Payment transaction accounting: unflag 'individual payment'.
Make a test and let me know if it's okay.
regards -
Hi.
i got a page with jquery mobile template, i got an select list item based on customers , when i touch the field, it display correcty all my customers, but when i try to pick some records i just get the error (i am using firefox firebug to see the error):
TypeError: s.text(...).addClass is not a function
...ollapsiblebound",!0).bind("expand collapse",function(t){var n=t.type==="collapse...
here is my query :
select
nombre_cliente || ' ' || apellidos_cliente a, codigo_cliente b
from sti_cliente
where
codigo_compania in (select distinct codigo_compania from STI_COMPANIA_SUCURSAL_USUARIO where upper(codigo_usuario) = upper(:APP_USER))
and estado_cliente = 'A'
and (MANEJA_INVENTARIO_CONSIGNACION = 'S'
and (codigo_compania, codigo_vendedor) in (select codigo_compania, codigo_vendedor from VTA_MAESTRO_VENDEDORES where codigo_usuario = upper(:APP_USER)) or cliente_contado = 'S')
order by nombre_cliente, apellidos_cliente
i have supress a dynamic action based on the field, but seems the problem is something within the query.
i am running on :
Application Express 4.2.4.00.08
Application Express Listener version : 2.0.5.287.04.27
Application Express Listener server info: Grizzly/1.9.49
thanks for any tip.PLEASE DO NOT post to long since expired threads. The poster is probably NOT following this thread and your response doesn't really help them with their issue...
Elephants wear tu-tus so they can hide in pine trees. Did you ever see an elephant in a pine tree? No? Well then, you know it works.
Thank you,
Tony Miller
LuvMuffin Software
Ruckersville, VA -
Customising a SharePoint list content type form - "Manage multiple list items with this form"
I have designed a form for a content type on an existing SharePoint list. When I ran the initial wizard, I selected
Manage multiple list items with this form which is great, exactly what I want.
But, there are some columns in this content type that I do not want repeating and have them moved them outside of the Repeating Section but I am getting the below error. I can't seem to find a way to create a new non-repeating group though. Any
advice on how to do this?*Bump*
-
Improper casting of bind in select list item?
Hi all,
In v3.1.2, I have a Select List item called P1_DEPT_FILTER where the LOV is:
Number of Columns 1
Display Null Yes
Null display value -- ALL --
Null return value
List of values definition select DNAME, DEPTNO from DEPT order by 1
In a computation of another item on the same page, I have a SQL Query in the computation that contains a WHERE clause referencing the Select List item:
AND (:P1_DEPT_FILTER IS NULL OR assigned_belt LIKE :P1_DEPT_FILTER)
The problem is that sometimes the computation query returns no rows. Using APEX debug and also dumping the session variables shows P1_DEPT_FILTER to contain the expected value based on what I selected, so I created a LOGON TRIGGER on the owner's database for the owner's schema to fire up a SQL Trace with binds. The bind variables for the computation query show "dty=1", which is a (n)varchar2 type, instead of the expected "dty=2".
My theory is that this improper casting is causing the computation to not work correctly, since running the computation query outside of APEX works perfectly.
I'm missing something here, but am stuck on where to continue troubleshooting. Thoughts?
TIA!
Rich
Edited by: socpres on Dec 17, 2008 4:02 PM (typo)Hey Scott,
My apologies for not posting the exact SQLin my original post -- I tend toward obfuscation. In any case...
That computation and it's slight derivatives appear on computations for P3_ID, P3_ID_NEXT, and P3_ID_PREV, as well as the "Get Next or Previous Primary Key Value" process. Since the value returned for the P3_CHAMPION_FILTER Select List is "8" when I attempt to filter, I altered the P3_CHAMPION_FILTER for each of the 4 SQLs similar to this:
SELECT
NVL(MIN(ID),0)
FROM
vip_project.project_table
WHERE
project_document IS NULL
AND lead_team_charter_date IS NOT NULL
AND (NVL(:P3_BELT_FILTER,0) = 0 OR assigned_belt = TO_NUMBER(:P3_BELT_FILTER))
-- AND (NVL(:P3_CHAMPION_FILTER,0) = 0 OR assigned_champion = TO_NUMBER(:P3_CHAMPION_FILTER))
AND (NVL(:P3_CHAMPION_FILTER,0) = 0 OR assigned_champion = 8)And it works perfectly! Without a filter on Champion, the correct 56 rows meeting the criteria are available for navigation on the form. If I select the item in the P3_CHAMPION_FILTER that corresponds to the value of "8", only the 3 rows for that "champion" column are navigable. Here's what debug says about the P3_CHAMPION_FILTER field when I select the "8" item:
0.14: ...Session State: Saved Item "P3_BELT_FILTER" New Value="0"
0.14: ...Session State: Saved Item "P3_CHAMPION_FILTER" New Value="8"
0.14: ...Session State: Save "P3_ID" - saving same value: "1"
And the Session State:
100 3 P3_CHAMPION_FILTER Select List 8 I
So, in theory, changing the "TO_NUMBER(:P3_CHAMPION_FILTER)" to "8" should have no effect, but it does. Baffling!
Thanks!
Rich -
Selected list items to Word document
I found online many posts to generate a word document with all items included in a list.
But is is possible to have the generation triggered by the user and to include only a subset of the list items?Hi ,
According to your description, my understanding is that you want to generate a word document with selected list items in your SharePoint 2010.
You should look into the Word Control Toolkit, which uses the Open XML format SDK to achieve what you require.
The basic functionality is that you use the Edit Control Block on a selected list item to generate and populate a Word document using a template you can select from a drop-down list.
Here's some links to get you started:
Generating Documents from SharePoint Lists with Open XML Content Controls
http://blogs.msdn.com/b/ericwhite/archive/2009/10/14/generating-documents-from-sharepoint-lists-using-open-xml-content-controls.aspx
Word Content Control Toolkit (Codeplex)
http://dbe.codeplex.com/releases/view/5508
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Can't select multiple items with shift key os 10.7
I can use command A to select all, and I can select multiple items with command and individually clicking each one, but not using Shift and clicking on the first and last items. Any ideas?
You need to display the window in column or list view. Shift-clicking items won't do that in icon view.
(64793) -
Populate HTML LIST ITEM with a query
Hello,
I've a problem,
I'm building a portlet based on an html form.
In this forms there are several list items,
How can I populate an html list item with a dynamic query based on a db table?I hope you are looking for something like this
declare
v_ret_string varchar2(32767);
begin
v_ret_string := ' <TABLE BORDER="1" bordercolor="#0000FF" bgcolor="#FFFFF0">
<TR><TD><TABLE BORDER="0" CELLSPACING="3" CELLPADDING="0">
<BR>
<TR><TD ALIGN=middle><SELECT SIZE="1" NAME="emp_list">
<OPTION VALUE="">';
For get_emp_list In (Select ENAME,EMPNO
From SCOTT.EMP
Order by ENAME) Loop
v_ret_string := v_ret_string || '<OPTION VALUE="'||get_emp_list.EMPNO||'">'||get_emp_list.ENAME;
End Loop;
v_ret_string := '</SELECT></TD></TR><TABLE></TABLE>';
End;
which uses PL/SQL code to generate the html page.
Thanks
-Krishnamurthy
Maybe you are looking for
-
Task.getProcessInfo().getProcessName Returns null -Oracle SOA 11g Worklist
Hi, Im working on building custom worklist application using oracle SOA 11g Java API .I 'm able to query a list of tasks from the BPM server. But, When I try to find process name by invoking task.getProcessInfo().getProcessName() it returns null even
-
Show component from main application mxml.
Hi all, I have a main application mxml and inside has a button named show_form. After that, I design an form named Form_A. And now, I want when click on show_form button fire the Form_A and made it appear. Hown can I do this ? Thanks !
-
Printer insists on printing to a file
For the last two weeks, the printer driver refuses to print. To clarify: It wants to "print" to a file. Canon tech support has advised me to uninstall and reinstall the drivers, which I've done several times, to no avail. This is incredibly frustrati
-
Can I increase steps in a chart to more than 10?
I'm trying to create a chart showing budget amounts and actual spend amounts, the amounts varying from $0 to $2,500,000. The lower amounts are very small and hard to see so I would like to spread the chart out over more than 10 steps but I can't see
-
Need to reinstall Photoshop to the same imac
My imac received a new hard drive and photoshop has to be reinstalled. I need to make sure that I am still able to install it to another computer later on. I am able to use this on two computers and since this is the same computer, it needs to be c