Auto Populating List with Dates
I'd like to create a SharePoint list wherein each row/item has a Start Date and End Date along with some other fields. Each item will correspond with a week and I'd like to pre-populate the list with a good number of "weeks".
Not too hard (if tedious) to do manually, but is there a clever way to get this done without doing some scripting?
Hi,
According to your post, my understanding is that you want to auto populate list with Dates.
I recommend that you can use caculated column.
You can use the formual as: =Created+7. Then return date type as Date and Time.
More information:
Date and time formulas
Best Regards,
Linda Li
Linda Li
TechNet Community Support
Similar Messages
-
Finding files from a list with dates
I have two questions.
1.
Can I set the order of images in a folder to the creation date order prior to place them (i.e. their names) in a list, in the order of the creation date? Or can I create a list with creation dates in the correct order, right away?
2.
If I have a list with only creation dates, how can I find the images with that date and duplicate them to another folder?
Thanks in advance.SQL> set null ?
SQL> select greatest(coalesce(d1,d2,d3), coalesce(d2,d3,d1), coalesce(d3,d1,d2))
2 from (select sysdate-1 d1, sysdate d2, sysdate-2 d3 from dual
3 union all
4 select null d1, sysdate d2, sysdate-2 d3 from dual
5 union all
6 select sysdate-1 d1, null d2, sysdate-2 d3 from dual
7 union all
8 select sysdate-1 d1, sysdate d2, null d3 from dual
9 union all
10 select null d1, null d2, null d3 from dual
11 );
GREATEST(
16-SEP-06
16-SEP-06
15-SEP-06
16-SEP-06
SQL> -
How to auto save output with date added to file name, and email the results?
Hi,
We found a script to capture disk space usage, that automatically places the results into an Excel file. We would like the script to autosave this file to a specific directroy with the date ran as part of teh file name. We would then like these results to
be emailed to us if possible. (also if possible to highlight cell in red that is 5% OR less available disk space would be great)
Here is what we have:
$erroractionpreference = “SilentlyContinue”
$a = New-Object -comobject Excel.Application
$a.visible = $True
$b = $a.Workbooks.Add()
$c = $b.Worksheets.Item(1)
$c.Cells.Item(1,1) = “Machine Name”
$c.Cells.Item(1,2) = “Drive”
$c.Cells.Item(1,3) = “Total size (GB)”
$c.Cells.Item(1,4) = “Free Space (GB)”
$c.Cells.Item(1,5) = “Free Space (%)”
$c.cells.item(1,6) = "Name "
$d = $c.UsedRange
$d.Interior.ColorIndex = 19
$d.Font.ColorIndex = 11
$d.Font.Bold = $True
$d.EntireColumn.AutoFit()
$intRow = 2
$colComputers = get-content "C:\Servers.txt"
foreach ($strComputer in $colComputers)
$colDisks = get-wmiobject Win32_LogicalDisk -computername $strComputer -Filter “DriveType = 3"
foreach ($objdisk in $colDisks)
$c.Cells.Item($intRow, 1) = $strComputer.ToUpper()
$c.Cells.Item($intRow, 2) = $objDisk.DeviceID
$c.Cells.Item($intRow, 3) = “{0:N0}” -f ($objDisk.Size/1GB)
$c.Cells.Item($intRow, 4) = “{0:N0}” -f ($objDisk.FreeSpace/1GB)
$c.Cells.Item($intRow, 5) = “{0:P0}” -f ([double]$objDisk.FreeSpace/[double]$objDisk.Size)
$c.cells.item($introw, 6) = $objdisk.volumename
$intRow = $intRow + 1
$d.EntireColumn.AutoFit()
cls
Thank YouHi Phorbin1128,
The script below amy be helpful for you to save the Excel file with date in filename, and send email with the attachment of the excel report.
$erroractionpreference = “SilentlyContinue”
$a = New-Object -comobject Excel.Application
$a.visible = $True
$b = $a.Workbooks.Add()
$c = $b.Worksheets.Item(1)
$c.Cells.Item(1,1) = “Machine Name”
$c.Cells.Item(1,2) = “Drive”
$c.Cells.Item(1,3) = “Total size (GB)”
$c.Cells.Item(1,4) = “Free Space (GB)”
$c.Cells.Item(1,5) = “Free Space (%)”
$c.cells.item(1,6) = "Name "
$d = $c.UsedRange
$d.Interior.ColorIndex = 19
$d.Font.ColorIndex = 11
$d.Font.Bold = $True
$d.EntireColumn.AutoFit()
$intRow = 2
$colComputers = get-content "C:\Servers.txt"
foreach ($strComputer in $colComputers)
$colDisks = get-wmiobject Win32_LogicalDisk -computername $strComputer -Filter “DriveType = 3"
foreach ($objdisk in $colDisks)
$c.Cells.Item($intRow, 1) = $strComputer.ToUpper()
$c.Cells.Item($intRow, 2) = $objDisk.DeviceID
$c.Cells.Item($intRow, 3) = “{0:N0}” -f ($objDisk.Size/1GB)
$c.Cells.Item($intRow, 4) = “{0:N0}” -f ($objDisk.FreeSpace/1GB)
$c.Cells.Item($intRow, 5) = “{0:P0}” -f ([double]$objDisk.FreeSpace/[double]$objDisk.Size)
$c.cells.item($introw, 6) = $objdisk.volumename
$intRow = $intRow + 1
$d.EntireColumn.AutoFit()
$date=Get-Date -f yyyy-MM-dd
$filename = "D:\test\"+$date+".xlsx"
$b.SaveAs($filename)
$a.Quit()
Send-MailMessage -SmtpServer xxxxxxxxxx -To [email protected] -From [email protected] -Subject "test mail" -Body "file name is: $new_file" -attachment $filename
For more detailed information about the cmdlet Send-MailMessage, please refer to this article:
Send-MailMessage
I hope this helps. -
Hi,
i am trying to send invoice idoc to destination . Can anyone please tell me how to populate the basic idoc type invoice02 with data ? Is there an sap standard program i need to use ?? I am using ALE to send my idoc .
Thank youHi Alisha
where are you trying to trigger the idoc from?if you are triggering it from a transaction,you should define a output type for that transaction.
there are various other things you need to take care of while sending an idoc from origin to destination.
1.RFC Destination of receiver-define in SM58
2.port definition-attaching the rfc destination to the outgoing R/3 port in WE21
3.partner profiles-outbound parameters for the idoc like the port,type,message type etc. in WE20
here under the message control u have to specify parameters like application,msg type and process code.this process code will link to a FM..IDOC_OUTPUT_INVOIC which consists of the code to populate the idoc.
4.attaching the basic idoc type to a message type in WE82
so as soon as u save the txn...the output control will trigger the FM and the idoc will be generated.if the control data like partner profiles,port definitions are set correctly the idoc will reach the destination as desired.
hope this helps. -
Really Urgent: List with Data Grid rowcount issue i added the full code below
Thanks in advance
Exactly wat i need is
1.if i click the open button want to visible all datagrid ,its working perfectly.
2.if i click the close button want to close all data grid ,its working perfectly.
3. if i click a particular list means want to visible particular datagrid..some times working good but some times not visible ...
4.if i click the list if datagrid already open means want to close .some times creates extra space below the datagrid........
if u cont get clearly please copy the below code and check it.....i think there is row count not working properly...any other way to solve this problem?.......
<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%" >
<fx:Declarations>
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var ArrUserList:ArrayCollection;
[Bindable]
public var listDB:ArrayCollection = new ArrayCollection([ {label: "2011", data:"jan",day:"saturday",date:"1-4-11"},
{label: "2011", data:"jan",day:"monday",date:"13-4-11"}, {label: "2013", data:"jan",day:"monday",date:"1-5-11"}, {label: "2013", data:"jan",day:"wednesday",date:"14-5-11"}, {label: "2015", data:"jan",day:"tuesday",date:"11-5-11"}, {label: "2015" ,data:"jan",day:"friday",date:"1-6-11"} ]);
public var loc_first_last_name:String;
function Load():void
ArrUserList=Find_Duplicate(listDB);
for(var i:int=0; i<ArrUserList.length; i++)
ArrUserList[i].click=0;
Lst_userlist.dataProvider=ArrUserList;
Lst_userlist.rowCount=ArrUserList.length;
function Clink_lnk_open():void
if(lnk_open.label=="Open")
for(var i:int=0; i<ArrUserList.length; i++)
ArrUserList[i].click=1;
lnk_open.label="Close";
ArrUserList.refresh();
Lst_userlist.validateNow();
Lst_userlist.dataProvider=ArrUserList;
Lst_userlist.rowCount = ArrUserList.length ;
else
for(var i:int=0; i<ArrUserList.length; i++)
ArrUserList[i].click=0;
lnk_open.label="Open";
ArrUserList.refresh();
Lst_userlist.validateNow();
Lst_userlist.dataProvider=ArrUserList;
Lst_userlist.rowCount = ArrUserList.length ;
function Click_UserName1(event:MouseEvent,data:Object):void
loc_first_last_name=event.currentTarget.text;
var str:String;
for(var i:int=0; i<ArrUserList.length; i++)
str=ArrUserList[i].label;
if(loc_first_last_name==str)
if(ArrUserList[i].click == 0)
ArrUserList[i].click=1;
else
ArrUserList[i].click=0;
ArrUserList.refresh();
Lst_userlist.validateNow();
Lst_userlist.dataProvider=ArrUserList;
Lst_userlist.rowCount=ArrUserList.length;
public function Find_Duplicate(test_arr:ArrayCollection):ArrayCollection
var res_arr:ArrayCollection=new ArrayCollection();
var flag:Boolean;
for(var i:int=0;i<test_arr.length;i++)
var j:int=0
flag=false;
for(;j<res_arr.length;j++)
if(res_arr[j].label==test_arr[i].label)
res_arr[j].dataCollection.addItem(test_arr[i]);
flag=true;
break;
if(!flag)
var myItem:Object = new Object() ;
myItem.label=test_arr[i].label;
myItem.dataCollection=new ArrayCollection();
myItem.dataCollection.addItem(test_arr[i]);
res_arr.addItem(myItem) ;
return res_arr;
]]>
</fx:Script>
<s:Scroller id="id_scroller" width="100%" height="100%">
<s:VGroup id="id_Vgroup" paddingLeft="50" paddingTop="10" paddingBottom="10" width="100%" height="100%" >
<mx:VBox width="850" paddingLeft="0" paddingTop="1" color="black" backgroundColor="#FFFFFF">
<mx:HBox width="850" left="50" paddingBottom="3" paddingLeft="5" backgroundColor="#6D6C6C" paddingTop="3" color="#FFFFFF" >
<mx:LinkButton id="lnk_open" label="Open" textDecoration="underline" click="Clink_lnk_open();"/>
<mx:Button id="load_btn" label="Load" click="Load()"/>
</mx:HBox>
<mx:VBox id="Vbox_main" width="850" horizontalScrollPolicy="off" verticalScrollPolicy="off" >
<mx:List variableRowHeight="true" width="850" id="Lst_userlist" paddingTop="-3" verticalScrollPolicy="off" horizontalScrollPolicy="off"
buttonMode="true" >
<mx:itemRenderer>
<fx:Component>
<mx:VBox paddingTop="-5" horizontalScrollPolicy="off" verticalScrollPolicy="off" >
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
override public function set data(value:Object):void
super.data = value;
Membership_Grid.dataProvider=data.dataCollection;
Membership_Grid.rowCount=data.dataCollection.length;
lbl_userhead.text=data.label;
lbl_userhead1.text=data.dataCollection.length+" Datas";
if(data.click==1)
Vbox_main.visible=true;
Vbox_main.includeInLayout=true;
else
Vbox_main.visible=false;
Vbox_main.includeInLayout=false;
Membership_Grid.validateNow() ;
]]>
</fx:Script>
<mx:HBox id="vbox_grid" horizontalScrollPolicy="off" height="25" verticalScrollPolicy="off" width="850" paddingLeft="10" paddingTop="5" backgroundColor="#6D6C6C" color="#FFFFFF">
<s:Label id="lbl_userhead" click="outerDocument.Click_UserName1(event,data)" buttonMode="true" width="250" paddingTop="3" />
<s:Label id="lbl_userhead1" buttonMode="true" width="548" paddingTop="3" />
</mx:HBox>
<mx:VBox id="Vbox_main" width="850" horizontalScrollPolicy="off" verticalScrollPolicy="off" visible="false" includeInLayout="false" >
<mx:DataGrid id="Membership_Grid" alternatingItemColors="[#DCDCDC,#F8F8FF]" paddingLeft="5" horizontalScrollPolicy="off" color="black"
horizontalGridLines="false" verticalScrollPolicy="auto" verticalGridLines="false" rowHeight="25" width="850" borderSkin="{null}"
borderVisible="false" >
<mx:columns>
<mx:DataGridColumn width="150" headerText="Year" dataField="label"/>
<mx:DataGridColumn width="150" headerText="Month" dataField="data"/>
<mx:DataGridColumn width="150" headerText="Day" dataField="day" />
<mx:DataGridColumn width="150" headerText="Date" dataField="date"/>
</mx:columns>
</mx:DataGrid>
</mx:VBox>
</mx:VBox>
</fx:Component>
</mx:itemRenderer>
</mx:List>
</mx:VBox>
</mx:VBox>
</s:VGroup>
</s:Scroller>
</s:Group>Hi,
You already wrote the same exact post 4 times! Don't you think it's enough?
May 12 : http://forums.adobe.com/message/3672269#3672269
May 20 : http://forums.adobe.com/message/3690500#3690500
May 23 : http://forums.adobe.com/message/3696874#3696874
May 25 : http://forums.adobe.com/message/3701649#3701649
If you want someone help you, from my point of view it surely not the right way of doing, especially by writing Really Urgent. It just annoys people (and btw it seems not to be so urgent as you stay with it since the May12). If you want a "urgent" answer, hire a Flex expert or just be patient.
Kind regards,
Mich -
Hi!
I have a problem with a PDF form: There's a drop down list that I populate with Excel data that I've put in an XML file through an XSD file -- no problem here. The drop down list has a data binding to the XML file, so that a choice in the drop down list can be associated with an object in the XML file. So, when I make a choice in the drop down list, a corresponding object value is fetched from the XML file and put in a text field on the form.
How to do this is described by Stefan Cameron here:
http://forms.stefcameron.com/2006/07/29/dynamic-properties/
There's a snag, though, and to describe it more clearly:
The XML file contains three types of objects: role, role number, and role cost center. Of these I use the first and the third, i.e. the role and the role cost center. The drop down list contains the roles, and when I select a role, the corresponding cost center is filled out in the text field. So far, so good!
But -- if the cost center has the same value for two or more roles, all of these roles "bounce back" into the drop down list, that is, they are all selected in the drop down list. How many of these you can see depend on the height of the drop down list -- if it's low you'll only see the first one.
If I modify Stefan Cameron's data in his example I get the same behavior, so the problem seems to have to do with how XML data are fetched.
I'm sure there's a workaround, but I can't find it! I've spent many hours browsing the web without finding anyone with a similar problem.
Any suggestions appreciated!Although your issue is far beyond mine, I was hoping you can help me out.....
I need to create a drop down list of names which I wish to somehow link to an Excel spreadsheet.
Please let me know the steps I need to do. I've tried several things, but nothing seems to work and I'm not sure what I am doing wrong.
Thank you -
Cascading Pick List with date range as first, second pick list is dynamic
Specifically, how is this accomplished?
It does not seem possible to make first pick list static. If allowed this would be perfect.
The system seems to only allow the first parameter to be dynamic if the second parameter is dynamic. No range seems to be available for date when second parameter is dynamic.Consider a 3rd-party tool as a solution (for a list of such tools, see http://www.kenhamady.com/bookmarks.html).
There is at least one Crystal report viewer with its own special implementation of dynamic & cascading parameters. It would allow you to use any type of parameter within the cascade. However, you will need to create a separate rpt to implement each dynamic parameter. So in your case, you will have one main report, using a dynamic parameter that's implemented as a separate rpt, which has a date range parameter.
Cheers,
- ido -
Auto Generated No with Date and year
I m using this method to create a auto generated no.
in pre-insert trigger
declare
v_l varchar2(10);
begin
select max(doc_no) into v_l from Table ;
if v_l is not null or v_l<>0 then
:table.doc_no:= v_l+1;
else
:table.doc_no:=1;
end if;
exception
when no_data_found then
:table.doc_no:=1;
end;I want to generate auto generate no|| month||year
please guide meKame wrote:
I want to generate auto generate no|| month||year
please guide meYou can get an auto-generated number using SEQUENCE in Oracle.
Do you have a specific date column in your table from which you need to get the MONTH and YEAR Data?
To get MONTH, you can use something like:
TO_CHAR(your_date_column, 'MONTH')To get YEAR, you can use
TO_CHAR(your_date_column, 'YYYY')your_date_column should contain data of date datatype.
Examples:
SQL> CREATE SEQUENCE SEQ
2 MINVALUE 1
3 MAXVALUE 999999999
4 START WITH 1
5 INCREMENT BY 1
6 /
Sequence created.
SQL> SELECT SYSDATE FROM Dual
2 /
SYSDATE
10-JUN-09
SQL> SELECT TO_CHAR(sysdate, 'MONTH') FROM Dual
2 /
TO_CHAR(SYSDATE,'MONTH')
JUNE
SQL> SELECT TO_CHAR(sysdate, 'YYYY') FROM Dual
2 /
TO_C
2009
SQL> SELECT TO_CHAR (SEQ.NEXTVAL)
2 || TO_CHAR (SYSDATE, 'fmMONTH')
3 || TO_CHAR (SYSDATE, 'YYYY')
4 auto_gen
5 FROM DUAL
6 /
AUTO_GEN
1JUNE2009
SQL> /
AUTO_GEN
2JUNE2009
SQL> /
AUTO_GEN
3JUNE2009
SQL> /
AUTO_GEN
4JUNE2009
SQL>Hope this helps.
Regards,
Jo
Edit: Corrected Query -
Error when populating cache with data.
Hi,
I am new to Oracle coherence. I was just following the examples at the following link:
http://download.oracle.com/docs/cd/E15357_01/coh.360/e15831/toc.htm
I am stuck at the following chapter:
5.2 Populating a Cache with Domain Objects
I am able to run the DataGenerator.java successfully. The contacts.csv file gets created.
When i run the LoaderExample.java, i get the following output:
Work: NE
77596
Yoyodyne Propulsion Systems, Grover's Mill US
330 Lectroid Rd.
Telephone Numbers
work: +11 927 20 4526527
home: +11 633 82 6834859
Birth Date: 1964-01-03
Exception in thread "main" (Wrapped) java.io.NotSerializableException: com.oracle.handson.ContactId
at com.tangosol.util.ExternalizableHelper.toBinary(ExternalizableHelper.java:215)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService$ConverterKeyToBinary.convert(PartitionedService.CDB:29)
at com.tangosol.util.ConverterCollections$AbstractConverterEntry.getKey(ConverterCollections.java:3387)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.splitEntriesByOwner(PartitionedService.CDB:17)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.ensureRequestTarget(PartitionedCache.CDB:18)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.putAll(PartitionedCache.CDB:34)
at com.tangosol.util.ConverterCollections$ConverterMap.putAll(ConverterCollections.java:1607)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.putAll(PartitionedCache.CDB:1)
at com.tangosol.coherence.component.util.SafeNamedCache.putAll(SafeNamedCache.CDB:1)
at com.oracle.handson.LoaderExample.load(LoaderExample.java:105)
at com.oracle.handson.LoaderExample.main(LoaderExample.java:37)
Caused by: java.io.NotSerializableException: com.oracle.handson.ContactId
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at com.tangosol.util.ExternalizableHelper.writeSerializable(ExternalizableHelper.java:2216)
at com.tangosol.util.ExternalizableHelper.writeObjectInternal(ExternalizableHelper.java:2664)
at com.tangosol.util.ExternalizableHelper.serializeInternal(ExternalizableHelper.java:2564)
at com.tangosol.util.ExternalizableHelper.toBinary(ExternalizableHelper.java:211)
... 10 more
2010-11-15 16:20:04.741/4.812 Oracle Coherence GE 3.6.0.0 <D4> (thread=ShutdownHook, member=4): ShutdownHook: stopping cluster node
2010-11-15 16:20:04.772/4.843 Oracle Coherence GE 3.6.0.0 <D5> (thread=DistributedCache, member=4): Service DistributedCache left the cluster
Can anyone please help me as to why i am getting this error?
I am unable to move forward to the next example due to this error.
Any ideas would be of great help.
ThanksCan you post the code for the ContactId class? I suspect you have forgotten to implement one of the PortableObject, Serializable, Externalizable, or ExternalizableLite interfaces. If that isn't it are you telling Coherence to use POF?
-Dtangosol.pof.enabled=true -Dtangosol.pof.config=pof-config.xmlEdited by: Willy Myers on 15-Nov-2010 04:02 -
Thanks in advance
Exactly wat i need is
1.if i click the open button want to visible all datagrid ,its working perfectly.
2.if i click the close button want to close all data grid ,its working perfectly.
3. if i click a particular list means want to visible particular datagrid..some times working good but some times not visible ...
4.if i click the list if datagrid already open means want to close .some times creates extra space below the datagrid........
if u cont get clearly please copy the below code and check it.......any other way to solve this problem?.......
<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%" >
<fx:Declarations>
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var ArrUserList:ArrayCollection;
[Bindable]
public var listDB:ArrayCollection = new ArrayCollection([ {label: "2011", data:"jan",day:"saturday",date:"1-4-11"},
{label: "2011", data:"jan",day:"monday",date:"13-4-11"}, {label: "2013", data:"jan",day:"monday",date:"1-5-11"}, {label: "2013", data:"jan",day:"wednesday",date:"14-5-11"}, {label: "2015", data:"jan",day:"tuesday",date:"11-5-11"}, {label: "2015" ,data:"jan",day:"friday",date:"1-6-11"} ]);
public var loc_first_last_name:String;
function Load():void
ArrUserList=Find_Duplicate(listDB);
for(var i:int=0; i<ArrUserList.length; i++)
ArrUserList[i].click=0;
Lst_userlist.dataProvider=ArrUserList;
Lst_userlist.rowCount=ArrUserList.length;
function Clink_lnk_open():void
if(lnk_open.label=="Open")
for(var i:int=0; i<ArrUserList.length; i++)
ArrUserList[i].click=1;
lnk_open.label="Close";
ArrUserList.refresh();
Lst_userlist.validateNow();
Lst_userlist.dataProvider=ArrUserList;
Lst_userlist.rowCount = ArrUserList.length ;
else
for(var i:int=0; i<ArrUserList.length; i++)
ArrUserList[i].click=0;
lnk_open.label="Open";
ArrUserList.refresh();
Lst_userlist.validateNow();
Lst_userlist.dataProvider=ArrUserList;
Lst_userlist.rowCount = ArrUserList.length ;
function Click_UserName1(event:MouseEvent,data:Object):void
loc_first_last_name=event.currentTarget.text;
var str:String;
for(var i:int=0; i<ArrUserList.length; i++)
str=ArrUserList[i].label;
if(loc_first_last_name==str)
if(ArrUserList[i].click == 0)
ArrUserList[i].click=1;
else
ArrUserList[i].click=0;
ArrUserList.refresh();
Lst_userlist.validateNow();
Lst_userlist.dataProvider=ArrUserList;
Lst_userlist.rowCount=ArrUserList.length;
public function Find_Duplicate(test_arr:ArrayCollection):ArrayCollection
var res_arr:ArrayCollection=new ArrayCollection();
var flag:Boolean;
for(var i:int=0;i<test_arr.length;i++)
var j:int=0
flag=false;
for(;j<res_arr.length;j++)
if(res_arr[j].label==test_arr[i].label)
res_arr[j].dataCollection.addItem(test_arr[i]);
flag=true;
break;
if(!flag)
var myItem:Object = new Object() ;
myItem.label=test_arr[i].label;
myItem.dataCollection=new ArrayCollection();
myItem.dataCollection.addItem(test_arr[i]);
res_arr.addItem(myItem) ;
return res_arr;
]]>
</fx:Script>
<s:Scroller id="id_scroller" width="100%" height="100%">
<s:VGroup id="id_Vgroup" paddingLeft="50" paddingTop="10" paddingBottom="10" width="100%" height="100%" >
<mx:VBox width="850" paddingLeft="0" paddingTop="1" color="black" backgroundColor="#FFFFFF">
<mx:HBox width="850" left="50" paddingBottom="3" paddingLeft="5" backgroundColor="#6D6C6C" paddingTop="3" color="#FFFFFF" >
<mx:LinkButton id="lnk_open" label="Open" textDecoration="underline" click="Clink_lnk_open();"/>
<mx:Button id="load_btn" label="Load" click="Load()"/>
</mx:HBox>
<mx:VBox id="Vbox_main" width="850" horizontalScrollPolicy="off" verticalScrollPolicy="off" >
<mx:List variableRowHeight="true" width="850" id="Lst_userlist" paddingTop="-3" verticalScrollPolicy="off" horizontalScrollPolicy="off"
buttonMode="true" >
<mx:itemRenderer>
<fx:Component>
<mx:VBox paddingTop="-5" horizontalScrollPolicy="off" verticalScrollPolicy="off" >
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
override public function set data(value:Object):void
super.data = value;
Membership_Grid.dataProvider=data.dataCollection;
Membership_Grid.rowCount=data.dataCollection.length;
lbl_userhead.text=data.label;
lbl_userhead1.text=data.dataCollection.length+" Datas";
if(data.click==1)
Vbox_main.visible=true;
Vbox_main.includeInLayout=true;
else
Vbox_main.visible=false;
Vbox_main.includeInLayout=false;
Membership_Grid.validateNow() ;
]]>
</fx:Script>
<mx:HBox id="vbox_grid" horizontalScrollPolicy="off" height="25" verticalScrollPolicy="off" width="850" paddingLeft="10" paddingTop="5" backgroundColor="#6D6C6C" color="#FFFFFF">
<s:Label id="lbl_userhead" click="outerDocument.Click_UserName1(event,data)" buttonMode="true" width="250" paddingTop="3" />
<s:Label id="lbl_userhead1" buttonMode="true" width="548" paddingTop="3" />
</mx:HBox>
<mx:VBox id="Vbox_main" width="850" horizontalScrollPolicy="off" verticalScrollPolicy="off" visible="false" includeInLayout="false" >
<mx:DataGrid id="Membership_Grid" alternatingItemColors="[#DCDCDC,#F8F8FF]" paddingLeft="5" horizontalScrollPolicy="off" color="black"
horizontalGridLines="false" verticalScrollPolicy="auto" verticalGridLines="false" rowHeight="25" width="850" borderSkin="{null}"
borderVisible="false" >
<mx:columns>
<mx:DataGridColumn width="150" headerText="Year" dataField="label"/>
<mx:DataGridColumn width="150" headerText="Month" dataField="data"/>
<mx:DataGridColumn width="150" headerText="Day" dataField="day" />
<mx:DataGridColumn width="150" headerText="Date" dataField="date"/>
</mx:columns>
</mx:DataGrid>
</mx:VBox>
</mx:VBox>
</fx:Component>
</mx:itemRenderer>
</mx:List>
</mx:VBox>
</mx:VBox>
</s:VGroup>
</s:Scroller>
</s:Group>Hi
Sir am using flex 4.0.1 SDKS 4.1.0....
Still i cont fix this problem....i have the same prob in many mxml files .any alternate solution for my prob pls let me know...
Thanks in Advance,
senthil. -
Populating table with data from another table with fewer columns
Hi,
I have 2 tables:
Table 1:
Column 1
Column 2
Column 3
Table 2:
Column 1
Column 2
I want to populate Table 1 with all the data from Table 2, and populate Column 3 of Table 1 with numbers from a sequence. Is there a SQL stmt to do this? If not, what is the best way to do it in PL/SQL?
Thank you
ShailanCREATE SEQUENCE t1_seq
START WITH 1
INCREMENT BY 1
CACHE 100;
INSERT INTO t1( col1, col2, col3 )
SELECT col1, col2, t2_seq.nextval
FROM t2Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Hi All ,
I have a BSP which is stateful and no MVC. My production server has a sesison timeout of 15 mins. I need to autosave my form and send this data to a Ztable. Can u help me out in solving this...
awaiting eagerly...
Regards,
GuruHi Guru,
user the setTimeout function to call a function that submits your form.
An example can be found at http://www.plus2net.com/javascript_tutorial/timer-set.php
Cheers
Graham Robbo -
Populating list with connected GPIB interfaces
I'm working on the setup section of an APP in Delphi5.0 using the GPIB-32.DLL and am a little baffled. Ni supplied this little gizmo that searches for GPIB interfaces (not devices). I would like to emulate this functionality for my application in a setup wizard sort of way so the end user can simply select from a list of 'detected' interfaces. In looking at the DLL calls they all seem to require previous knowledge of the device location. So I'm wondering if there is a set range of possible Primary and Secondary addresses I can use to just loop through searching for an interface. I'm assuming here that anything that wouldn't toss a failure when sent a Pri/Sec Address would be a set of valid device ports. On that note...
are there some specific commands to issue that will return a string telling me exactly what it found on that Pri/Sec address?
Thanks!
CTOk.. I made some progress. Using SendIFC and ibfind, etc, watching NiSpy I have determined this is coming back as an Integer and other Ni applications use the Init_DA_Brds to obtain a translation of the integer to descriptive title. However I don't have access to that and the only reference I found of the device list codes is from 1999 which does not include some of the newest hardware including the USB based devices.
Is there a newer list of product codes available? -
Issue with populating documents with data connections
Hi Guys
I have two issues one we have set up an infopath document for browser enabled. But when I upload it, it doesnt work in IE.
Also how do you get the data connections working to the form?
ThanksHell,
Refer this thread to open form in browser by force: (just add "?OpenIn=Browser" in form URL at the end)
http://stackoverflow.com/questions/7361858/infopath-2010-forms-do-not-open-in-the-browser-using-ie8
>Also how do you get the data connections working to the form?
If you are using same site collection data connection then it should work without UDCX file but if there is cross site collection data connection then create UDCX for your data connection.
http://msdn.microsoft.com/en-us/library/office/ms772101%28v=office.14%29.aspx
If it does not resolve you problem then provide the error detail
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
AUTO POPULATING HEADERS WITH A MACRO IN PDF FILES?
My company recently bought me Adobe Professional. We have certain paperwork on PDF files. What I want to do is be able to update the headers much like the program I developed in Excel where you put the info in a form and it automatical updates everything else. I have the info linked to other pages in the workbook. Currently we print the pdf file and then use the Excel program to print the header on the printed pdf files by putting them back into the printer. I want to eliminate the printing and putting back into the printer part by updating the header in the PDF file and printing the items directly. Any ideas? It would make my day and streamline a process. Thanks!
Hello luvtofly,
You posted this message in the InContext Editing Web Developer discussion. I'm going to move this to the Acrobat forum where it can be seen by someone who might be able to help.
Best regards,
Corey
Maybe you are looking for
-
Satellite C850 - HDMI out no longer working after Windows 8.1 upgrade
Hi can anyone help, I have trawled the web to no avail. I can no longer project the laptop screen to my plasma, I have tried the Win + P buttons and nothing happens, turned on amd off with the hdmi cable connected etc. Thanks in advance.
-
Can we archive files using the receiver file channel
Dear all, I'm looking for a option, where in I want to archive the files being sent to the target system. Do we have that facility in XI Receiver File communication channel. Can the same be achieved for JMS Receiver channel. Kindly give your comments
-
Import data from mySQL into flash?
I am new t this and therefore do not know if it can be done, but I want to import certain data from mySQL into a flash project. I know how to do this in PHP but not in action script. Help Please!
-
Updating Cs3 to ACR 5.7
I am running windows Vista and want to update ACR to 5.7 I have downloaded the update following instructions for windows XP but this did not work. I have the 5.7 folder on my desktop, How do I get it into cs3 ? Easy to follow instuctions would be app
-
I don't gedit... I've applied 2 Set Speed Behaviours of 50% to a clip: the 1st one to the first 18 frames and the 2nd one to the last 15 frames. The clip's original duration of 00:00:05:21 is unchanged after applying the set speed behaviours. I was e