Default date using Personalization

Hi All,
Is it possible to default a date field with todays date using Personalization techniques , if yes please tell me how.
I have to default 'Expenditure Item Date' in iProc checkout pages to current date.
thanks
Sudeep

Hi Ramkumar,
Thanks for your promt reply.
Actually my requirement is to default the Expenditure date field to SYSDATE and also the Expenditure Org each time the Project LOV is modified.This is on the iProcurement Checkout page (CheckoutSummaryPG.xml)
For this I extended the ProjectLovVO to include 2 attributes- one for the date field and the other for the Expenditure Organization field. I later created LOV mappings to default the values to these 2 fields. It happens correct for the first time but when I modify the Task Lov on the same page the value displayed in the Expenditure Date field is lost. However the Expenditure Org field retains its value.
The Expenditure Org field was an LOV which I personalised and made Read Only and by setting the value for both the Expenditure Org name as well as the Form value for Expenditure Org Id I was able to retain the value even after the page was refreshed.
The Expenditure Date field was a Message Text Input field which I made read only. I even attached a form value mapped to the same view object attribute as the message Text Input field but still it gets refreshed.
Hope the requirement is clear. Please suggest a solution for this.
Thanks in advance.
Jasmine.

Similar Messages

  • By using personalization can we default the values as null in oaf

    Hi All,
    Can we change the default values to null....
    Actually i have from and to date fields....when ever page opens the vales are geting defaulting in that fields...
    I need to make this as null....by using personalization is it possible( if yes...need help) or i need to extend the co..
    Regards
    Harry

    Hi Harry,
    If the values are defaulting from the "initial value" property it can be set to null by removing those values from personalization, but I feel it will be defaulting from code if it is so, same can not be achieved by personalization.
    Regards,
    Reetesh Sharma

  • Unable to set default date for Date Picker item using Auto Row Processing

    Okay, I have searched through the forum for an answer, and have not found a thing to account for my problem.
    First, does anyone know if using Auto Row Processing has problems updating an item/field in a record where the Source is defined as Database Column if the 'Display As' is defined as 'Date Picker (MM/DD/YYYY)'?
    I ask this only because I found out the hard way that Auto Row Processing does NOT fetch the value for an item where the field is defined as TIMESTAMP in the database.
    My problem is as follows: I have a form that will CREATE a new record, allowing the user to select dates from Date Pickers, text from Select Lists, and entering in text into a Textarea item. The information is saved using a standard (created through the Auto Row Processing wizared) CREATE page level button. After the record is created the user is able to go into it and update the information. At that time, or later, they will click on one of two buttons, 'ACCEPT' or 'DECLINE'. These are Item level buttons, which set the REQUEST value to 'APPLY' (Accept) and 'UPDATE' (Decline). The Accept button executes a Process that changes the Status Code from 'Initiated' to 'Accepted', and sets the Declined_Accepted_Date to SYSDATE, then another Process SAVEs the record. The Declined button runs a Process that changes the Status Code from 'Initiated' to 'Declined', and sets the Declined_Accepted_Date to SYSDATE, then another Process SAVEs the record.
    However, even though the Status Code field is updated in the database record in both Accepted and Declined processing, the Declined_Accepted_Date field remains NULL in the database record (by looking at the records via SQL Developer). WHY??? I looked at the Session State values for both the Status Code and the Declined_Accepted_Date fields and saw that the fields (items) had the expected values after the process that SAVEs the record.
    The following is the code from the Accept button Page Process Source/Process:
    BEGIN
    :P205_STATUS_CD := 'A';
    :P205_REF_DECLINE_ACCEPT_DT := SYSDATE;
    END;
    As can be seen, the Status Code and Declined_Accepted_Date items are set one right after the other.
    As an aside, just what is the difference between Temporary Session State vs Permanent Session State? And what is the sequence of events to differentiate the two?

    Here's yet another thing that I just looked into, further information...
    One other difference between the date field I am having problems with (Accepted_Declined_Date), and other dates (with Date Pickers) in the record is that the Accepted_Declined_Date never gets displayed until after it is set with a default date when the Accept and Decline buttons are pressed.
    One of the other dates that works, the Received Date, is able to write a default date to the record that is never typed into the box or selected from the calendar. That date is placed into the box via a Post Calculation Computation in the Source, which I set up as: NVL(:P205_REF_RECEIVED_DT,TO_CHAR(SYSDATE,'MM/DD/YYYY'))
    However, I do remember actually trying this also with the Accepted_Declined_Date, and setting the Post Calculation Computation did not work for the Accept_Decline_Date. Could this be because the Accept_Decline_Date is never rendered until the Status Code is set to Declined (in other words, there is no need to display the date and allow the user to change it until the record is actually declined)???
    The control of the displaying (rendering) of the date is set via the Conditions / Condition Type: Value of Item in Expression 1 = Expression 2
    Expression 1 = P205_STATUS_CD and Expression 2 = L
    Does this shed any light???

  • Can you set a default value using Data Mover Scripts?

    Hi,
    We're going through a upgrade of PS Fin 8.9 -> 9.1. We've found some existing tables with new columns that are marked as NOT NULL so we're having trouble migrating the data using DMS.
    Is there a way to Export the data from 8.9 and when importing into 9.1, set a default value for the new column using DMS?
    A specific example would be the PS_SOURCE_TBL where EXCHANGE_RATE_OPTN is new and NOT NULL.
    Thanks for any assistance.

    What you could do is first rename the record to be imported
    IMPORT SOURCE_TBL AS PS_SOURCE_TBL_ORG;
    Then write a insert/select script from PS_SOURCE_TBL_ORG to PS_SOURCE_TBL defaulting column EXCHANGE_RATE_OPTN
    Insert into PS_SOURCE_TBL (COLUMN,COLUMN,COLUMN,COLUMN, EXCHANGE_RATE_OPTN)
    select PS_SOURCE_TBL_ORG (COLUMN,COLUMN,COLUMN,COLUMN, 'defaultvalue');
    And then drop table PS_SOURCE_TBL_ORG to clean up your database.

  • Record entry date - using system date as default not working

    Hi,
    I have a form which allow users to enter the information... I want to have a field to save the date when they've updated the record...
    in order to accomplish the above, here is what I did:
    1) I created an item on the form (put the source as table_column that I am using to save the record entry date on the table)...
    2) In the Default field I put "sysdate" to capture the current date...
    3) I made the item "Display only" so that no one should be able to change it...
    so far so good... when my users open the form they see current date populated in the form...
    my challenge is that when user saves the form, everything that they enter saves except for the "record modification date"... Not sure if it's due to date format or something else causing it, the date format on my form is DD-MON-YY and seems like the format on my table is DD/MM/YYYY... if it's the date formatting issue then please advice how to fix it...
    I've saved a sample on APEX.ORACLE.COM for your review and comments... Here are the log in details
    Workspace: tparvaiz
    Username: [email protected]
    Password: tparvaiz
    Application: 28899     Default Date and White Space
    Appliaction Page No: 24
    ID/PW: TEST/TEST
    Thanks

    Hi,
    Default value only used when item value is null. So when you fetch the from it gets the value from database column and omit the default value. I use trigger to store audit information i.e. create date, username etc.
    Here is an example if you want to use -
    The following trigger will capture the date and username and store into the table.
    CREATE OR REPLACE TRIGGER TRG_BI_TABLE_NAME
    BEFORE INSERT
    ON TABLE_NAME
    REFERENCING OLD AS OLD NEW AS NEW
    FOR EACH ROW
    BEGIN
    /* change the column name as of your table */
      :new.create_date := SYSDATE;
      :new.created_by := v('APP_USER');
    END;This trigger will store user information and date when record been updated -
    CREATE OR REPLACE TRIGGER TRG_BU_TABLE_NAME
    BEFORE UPDATE
    ON TABLE_NAME
    REFERENCING OLD AS OLD NEW AS NEW
    FOR EACH ROW
    BEGIN
    /* change the column name as of your table */
    :new.update_date := SYSDATE;
    :new.updated_by := v('APP_USER');
    END;Hope this helps,
    Regards,
    Tajuddin
    web: http://tajuddin.whitepagesbd.com

  • Defaulting % in search pages using personalizations

    Is it possible to default % in search pages of SSHR using personalizations?

    Hi,
    Try to extend the controller where the search region is there, and get the handle of the search item
    and set the value % in the process request.
    With regards,
    Kali.
    OSSI.

  • Using the default date for presentation variable

    In the report I want to use the default date for the presentation variable.
    If I use the query like below,default value is giving correctly.but if I pass the date value from dashboard prompt it is throwing error
    Anybody help me to modify the below
    query to get the valid results?
    Timestampadd(SQL_TSI_day,(dayofmonth(date @{asdf}{date '1900-01-01'})*-1)+1,date @{asdf}{date '1900-01-01'})
    Edited by: user12255470 on Dec 2, 2010 12:11 PM
    Edited by: user12255470 on Dec 2, 2010 12:12 PM

    try this:
    Timestampadd(SQL_TSI_day,(dayofmonth(date '@{asdf}{1900-01-01}')*-1)+1,date '@{asdf}{1900-01-01}')
    mark answers promptly.
    J
    -bifacts
    http://www.obinotes.com
    Edited by: bifacts on Dec 2, 2010 3:21 PM

  • JPA - How can I use the table's default Date types? e.g. CURRENT_TIME

    Once again, can't find an answer anwhere.
    I would like to know if/how one can use the default date/time/datetime types as declared for the target table when attempting to persist an entity having these fields set as null.
    create table item
         item_id INTEGER NOT NULL PRIMARY KEY DEFAULT AUTOINCREMENT,
         date_created DATETIME NOT NULL DEFAULT NOW(*),
         date_updated DATETIME NOT NULL DEFAULT NOW(*),
    );Now how can I get the above table to work when attempting to em.persist(myItem) whereby dateCreated and dateUpdated are both null?

    I should also mention that TopLink has always supported the ability to retrieve the current time from the database for use in optimistic locking. The TimestampLockingPolicy offers the ability to configure the next value being retrieved from the database instead of using the local time from the JVM. Our extended optimistic locking configuration does not currently support setting this option but it could be done using a descriptor customizer which can be configured in your persistence unit properties.
    Using optimistic locking may be a good solution for the last modified date since it will also ensure that you do not corrupt the database if someone else has incremented this value since your last read.
    Doug

  • Can we load data using .xls in user define format(without using default template)

    Hi All,
    I'm new bee to FDM. Part of HFM support i use FDM to load flatfile data. Just has a bit more knowledge than end user.
    Requirement is that i need to load data from MS excel to Planning application via FDM.
    Previously application is in Excel(Macro driven) and upstream(data) is also in Excel(multi tab).
    As of my knowledge data can be loaded from .csv file(Excel save as CSV) with single tab.
    Could you please let me know possibilities to load data from .xls(.xlsx) to FDM.
    Thanks in advance.

    If you want to load data using Excel, utilising FDM's out-of-the-box functionality you will have to use one of the templates supplied i.e. Excel Trial Balance or Excel Multi-load template.

  • Date Format in Zreport similar to the default date format set using su01.

    Dear All,
                I have a requirement as to change the date format in Zreport as the one which is set in default date format for the user in Su01 tcode.
    Ex.. If the user has set the default date format in SU01 as ' YYYY-MM-DD' , in report also, date should appear as '2009-12-24'.
    Is there any code  or  Function Module to change the date format in report as in the default Date format?
    Can u help me in this?
    Bye.....
    Cheers
    Christina.

    Try the following code.
    select the format of current user from usr01 table.
        SELECT SINGLE datfm FROM usr01
        INTO w_datfm
        WHERE bname = sy-uname.
    Format based upon the current user settings. put this total code inside one form for reusability.
        IF w_datfm = '1'.
          CONCATENATE w_date6(2) c_dot w_date4(2) c_dot w_date+0(4) INTO outtab-value.
          CONDENSE outtab-value NO-GAPS.
          CONCATENATE w_rundate6(4) w_rundate3(2) w_rundate+0(2) INTO w_date.
          CONDENSE w_date NO-GAPS.
        ELSEIF w_datfm = '2'.
          CONCATENATE w_date4(2) '/' w_date6(2) '/' w_date+0(4) INTO outtab-value.
          CONDENSE outtab-value NO-GAPS.
          CONCATENATE w_rundate6(4) w_rundate0(2) w_rundate+3(2) INTO w_date.
          CONDENSE w_date.
        ELSEIF w_datfm = '3'.
          CONCATENATE w_date4(2) '-' w_date6(2) '-' w_date+0(4) INTO outtab-value.
          CONDENSE outtab-value NO-GAPS.
          CONCATENATE w_rundate6(4) w_rundate0(2) w_rundate+3(2) INTO w_date.
          CONDENSE w_date.
        ELSEIF w_datfm = '4'.
          CONCATENATE w_date0(4) '-' w_date4(2) '-' w_date+6(2) INTO outtab-value.
          CONDENSE outtab-value NO-GAPS.
          CONCATENATE w_rundate0(4) w_rundate5(2) w_rundate+8(2) INTO w_date.
          CONDENSE w_date NO-GAPS.
        ELSEIF w_datfm = '5'.
          CONCATENATE w_date0(4) '/' w_date4(2) '/' w_date+6(2) INTO outtab-value.
          CONDENSE outtab-value NO-GAPS.
          CONCATENATE w_rundate0(4) w_rundate5(2) w_rundate+8(2) INTO w_date.
          CONDENSE w_date NO-GAPS.
        ENDIF.

  • Can we change the prompt of textfield using personalization

    Hi,
    I want to change the prompt of a textfield using personalization. I changed the prompt using personalization, but still it is showing the old value. Also I changed the rendeered prompt of a field to false and still that filed is coming up in the page. Also I set the default value to null to one of the textfield and that value is coming up with some value when the page is loaded.
    Can I do all above 3 using personalization or should I extend the controller.
    User personalization is false for those fields.
    Thanks,
    HC

    Hi Gyan,
    I did the personalization of the one date field and that worked and it is readonly now. The other field is created by bean by Controller..so I can't do personalization on that. I extended the Controller and added the code.
    OAApplicationModule localOAApplicationModule = paramOAPageContext.getApplicationModule(paramOAWebBean);
    OAMessageDateFieldBean localOAMessageDateFieldBean = (OAMessageDateFieldBean)paramOAWebBean.findIndexedChildRecursive("DplSrcRefDate");
    if (localOAMessageDateFieldBean != null)
    localOAMessageDateFieldBean.setValue(null);
    //localOAMessageDateFieldBean.setPrompt(oapagecontext."Date Placed In Service");
    localOAMessageDateFieldBean.setPrompt("Date Placed In Service");
    Is the setPrompt command correct. I was waiting for the apache bounce to see the effect. If this is not correct command, I can change the command so that I don't have to do the apache bounce twice.
    Thanks,
    HC

  • Network based and a-gps, data use tests

    i was trying to find this kind of info, but only found others asking.
    i hope this is useful info for others, especially while roaming.
    skip to the bottom for conclusion,
    this is the process i took:
    i called nokia tech support,
    their phone support his horrible,
    the people on the phone don't actually know anything, and have to look up everything you ask them.
    they were the worst.
    i emailed nokia tech support.
    my message was:
    "i would like to know the difference between assisted gps positioning, and network based positioning. these are 2 of the 4 options on my nokia e66 for positioning methods. i would like to know if network based positioning uses internet data from my service provider to obtain my gps position. i am especially concerned with this function while i'm roaming internationally, as i do not want to be charged for roaming data use."
    in about half hour they responded w/ an answer, and then 45 min after that someone else responded w/ an answer.
    the first response, minus the hello's etc. was:
    "In response to your email, Assisted GPS and Network Based positioning methods generate costs related to data traffic so you will be charged for data use. Only "normal" GPS and Bluetooth GPS do not generate additional costs related to data traffic.
    Normal GPS is quite slow and does not work indoors. Therefore, it is recommended to enable at least A-GPS to get a faster position outdoors.
    Network based and Wi-Fi positioning also allow you to update your position inside buildings, but they cannot be used for navigation."
    the 2nd response was:
    "In response to your inquiry, the difference between Assisted GPS positioning (A-GPS) and Network based positioning is that,  A-GPS uses satellites while Network based positioning is based on information of your cellular network environment. It allows you to update your position inside buildings, but they cannot be used for navigation. Both positioning methods generate costs related to data traffic (unless you have configured the device to use Wi-Fi connection to make the internet connection). The cost may vary while you are on roaming. Kindly contact the service provider for information about data transmission costs."
    i can also respond w/ more questions, but instead did some tests, starting with sitting home, indoors, and eventualy moving to a window w/ lots of sky.
    test 1:
    i enabled:
    integrated gps
    network based
    assisted gps
    opened maps,
    set maps to be offline,
    set default internet access point to my home wlan network,
    closed maps,
    cleared all counters and the log on the phone's communication log.
    opened maps
    there is a pink circle around the area i may be in,
    the icon that would show gps satellite strength, changes to show the cell phone antenna icon.
    but the packet data counter is sending/receiving a total of around 3-8kb immediately, and over the course of time, it keeps adding up, every 1-2 minutes, and it is shown as packet data to/from the access point "at&t internet"
    over the course of ten minutes, it's been about 43kb.
    and i can tell on the phone's home screen that the packet data connection becomes active when it does.
    the maps kb indicator still says 0.0kb, with a line through the double arrow packet data symbol.
    test 2:
    now i exited maps,
    cleared the counters and logs
    i turned off a-gps.
    enabled only integrated gps and network based.
    i open maps,
    the same thing is happening as with the assisted gps on, except i connected to my home wlan once, in the middle of connecting to at&t internet 10 or so times.
    everything else is happening the same.
    test 3:
    i exited maps,
    cleared the counters and logs.
    enabled only integrated gps.
    i open maps, and there is no evidence of packet data connection, or wlan connection.
    nothing is showing up in the logs or packet counters, and there is no pink circle around where i may be.
    if i set maps to go online, w/ my wlan as the access point, or at&t internet, their respective icons show up on maps, as well as the phone's home screen.
    the phone's log show respective connections are made but w/ 0.0kb, and the phone's packet counter, as well as the maps kb usage, say 0.0kb.
    test 4:
    set maps to offline, w/ my wlan as access point.
    exited maps,
    turned phone off for a bit to test gps from cold start.
    turned on phone,
    cleared counters/logs,
    enabled only assisted gps and integrated gps.
    open maps, there's no pink circle around where i may be, just the red dot of where it thought i last was.
    there's about 4-5kb of data transfer,
    then i bring the phone to the window where there's a lot of clear sky, and my location is found pretty fast.
    i know that w/o assisted gps, w/ only integrated gps, it takes a while to get the gps signals.
    i went back and forth to/from the window, and there was packet data use again only once more, not continuously like w/ network based positioning.
    so to conclude my tests,
    setting the maps to be offline, still uses a-gps and network based positioning.
    network based uses a more data, continuously,
    which is the opposite of what i thought, i thought a-gps would use more, so i was using network based on and a-gps off while in canada. whoops.
    using assisted gps uses about 5-10kb, which, when roaming, according to at&t, they charge 1.95cents/kb.
    might be worthwhile for getting a quick gps signal, nothing worse than waiting forever for it to connect.
    the only way to be completely clear of data use is disable network based and assisted gps, or set the phone to offline mode.

    A-GPS: This uses information from cell network to get a rough idea of where you are. It then uses this information to figure out which satellites to look for. Result is a faster satellite lock. So A-GPS uses a few kB of data to get an initial position, but navigation is done using GPS satellites, which does not require ANY data connection.
    Network based: This uses information from the cell network to plot the current position when GPS satellite signal is not available, ie indoors, in a tunnel, etc. Position info derived from the cell network is not as accurate as that from GPS satellites, but serves as a stopgap until GPS signal can be re-acquired. Network based positioning used your data connection EACH TIME the satellite lock is lost. So the amount of data used is dependent on the quality of access you have to the GPS satellites. If you don't lose the connection to the GPS satellites, then you won't use any data.
    The ‘offline’ option within the Nokia Maps app only refers to street, POI, etc searches, NOT to A-GPS, Network based positioning or to connecting with the GPS satellites.
    If you want to navigate without using ANY data connection, set A-GPS off AND set Network based positioning off AND set the Internet option in Nokia Maps to Offline. Do this and you will not use any of your data connection allowance when navigating. There is no need to put the phone into flight mode.
    If I've helped you, you can thank me by clicking the green 'kudos' star on my post. Cheers.

  • Return default data if no data is returned by sql query

    Hi,
    I have a requirement.
    I have an inner query that returns no data. However I still want to return default data (say 'abc'). The below sql does not return anything inspite of using nvl . Please advise .
    select nvl( x.vencode,'abc') vencode
    from
    -- below sql returns no data!
              SELECT a.vencode vencode,
                     a.mid mid,
                     a.title title,
                      ROW_NUMBER() OVER (PARTITION BY a.vencode ORDER BY a.title) rnk
               FROM (
                     SELECT *
                     FROM    (SELECT vencode FROM vendor where login is not null and vencode = 'BKFI'
                                        and login > (sysdate - 90) )
                          CROSS JOIN
                             (SELECT mid, title, ROWNUM num FROM tcommmemos where mid is not null)
                    ) a,        
                   (SELECT * FROM (
                    SELECT v.vencode, tc.mid, tc.title
               FROM
               (select  * from vendor
                     where login is not null and vencode = 'BKFI'
                     and login > (sysdate - 90)) v,
                tcommmemosviewed tcv, tcommmemos tc
               WHERE     v.vencode = tcv.vencode
                     and tc.mid is not null
                     --AND tc.post_date > v.hiredate
                     AND tc.mid = tcv.mid)
                   ) b
                   where a.vencode = b.vencode(+)
                     and a.title   = b.title(+)
                     and a.mid     = b.mid(+)
                     and b.mid is null                               
    ) x              

    Use any aggregate function it'll always return a value even if there no data in the table
    create table r_dummy_1 (a number);
    SQL> select * from r_dummy_1;
    no rows selected
    SQL> select nvl(max(a),1) from r_dummy_1;
    NVL(MAX(A),1)
    1

  • How to get all input columns of script components checked by default to use the same in code ?

    Hi ,
    I am working on BIML Script component, where I am taking data from OLEDB Source.
    In Script Component I want all the input columns to be checked by default as input.
    I have no idea how to proceed for the same.
    Below is my code :-
    <Biml
    xmlns="http://schemas.varigence.com/biml.xsd">
    <Container
    Name="Load Data Truncate Staging"
    ConstraintMode="Parallel"
    DelayValidation="true" >
    <Tasks>
    <Dataflow
    Name="Archive Data"
    DelayValidation="true" >
    <Transformations>
    <OleDbSource
    Name="Source"
    ConnectionName="DataStaging"
    ValidateExternalMetadata="false"
    LocaleId="None" >
    <VariableInput
    VariableName="User.V_Archivequery"
    />
    </OleDbSource>
    <RowCount
    Name="Count Source Records"
    VariableName="User.sourceRecords"/>-->
    <ScriptComponentTransformation
    ProjectCoreName="MMd5"
    Name="MD5_Checksum">
    <ScriptComponentProject>
    <ScriptComponentProject
    ProjectCoreName="SC_Example.csproj"
    Name="ExampleScriptComponent">
    <AssemblyReferences>
    <AssemblyReference
    AssemblyPath="Microsoft.SqlServer.DTSPipelineWrap"
    />
    <AssemblyReference
    AssemblyPath="Microsoft.SqlServer.DTSRuntimeWrap"
    />
    <AssemblyReference
    AssemblyPath="Microsoft.SqlServer.PipelineHost"
    />
    <AssemblyReference
    AssemblyPath="Microsoft.SqlServer.TxScript"
    />
    <AssemblyReference
    AssemblyPath="System.Windows.Forms.dll"
    />
    <AssemblyReference
    AssemblyPath="System.dll"
    />
    <AssemblyReference
    AssemblyPath="System.AddIn.dll"
    />
    <AssemblyReference
    AssemblyPath="System.Data.dll"
    />
    <AssemblyReference
    AssemblyPath="System.Xml.dll"
    />
    </AssemblyReferences>
    <Files>
    <File
    Path="Properties\AssemblyInfo.cs">
    using System.Reflection;
    using System.Runtime.CompilerServices;
    [assembly: AssemblyTitle("SC_Example.csproj")]
    [assembly: AssemblyDescription("")]
    [assembly: AssemblyConfiguration("")]
    [assembly: AssemblyCompany("Ciber Nederland")]
    [assembly: AssemblyProduct("SC_Example.csproj")]
    [assembly: AssemblyCopyright("Copyright @ Ciber Nederland 2012")]
    [assembly: AssemblyTrademark("")]
    [assembly: AssemblyCulture("")]
    [assembly: AssemblyVersion("1.0.*")]
    </File>
    <File
    Path="main.cs">
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
    using Microsoft.SqlServer.Dts.Runtime.Wrapper;
    using System.Security.Cryptography;
    using System.Text;
    using System.Windows.Forms;
    using System.IO;
    using System.Reflection;
    [Microsoft.SqlServer.Dts.Pipeline.SSISScriptComponentEntryPointAttribute]
    public class ScriptMain : UserComponent
    public override void Input0_ProcessInputRow(Input0Buffer Row)
    string strColumnsValue = string.Empty;
    Type rowType = Row.GetType();
    PropertyInfo columnProperty;
    MD5 md5 = new MD5CryptoServiceProvider();
    Encoder enc = System.Text.Encoding.Unicode.GetEncoder();
    foreach(IDTSInputColumn100 Rw in this.ComponentMetaData.InputCollection[0].InputColumnCollection)
    columnProperty = rowType.GetProperty(Rw.Name);
    strColumnsValue += Convert.ToString(columnProperty.GetValue(Row,null));
    byte[] bbb = new byte[strColumnsValue.Length * 3];
    bbb = UnicodeEncoding.Unicode.GetBytes(strColumnsValue);
    byte[] hash = md5.ComputeHash(bbb);
    String strHash = Convert.ToBase64String(hash);
    Row.RowChecksum = strHash;
    </File>
    </Files>
    <InputBuffer
    Name="Input0">
    </InputBuffer>
    <OutputBuffers>
    <OutputBuffer
    Name="Output0">
    <Columns>
           <Column
    Name="RowChecksum"
    DataType="String"
    Length="1000"/>
    </Columns>
    </OutputBuffer>
    </OutputBuffers>
    </ScriptComponentProject>
    </ScriptComponentProject>
    </ScriptComponentTransformation>
    </Transformations>
    </Dataflow>
    </Tasks>
    </Container>
    </Tasks>
    </Package>
    </Packages>
    </Biml>
    Please suggest me where i am doing mistake.
    Regards,
    Vipin jha
    Thankx & regards, Vipin jha MCP

    http://stackoverflow.com/questions/21440993/adding-a-script-task-using-biml
    http://stackoverflow.com/questions/22455000/automatically-generate-ssis-package-from-biml-script
    Both links have nothing to do with the question.
    @Vipin: what I did in one of my BIML scripts was looping over the columns using C# in the BIMLScript, and adding each column to the input using this code. Do you have the metadata of the columns somewhere?
    I don't have the scripts with me unfortunately.
    MCSE SQL Server 2012 - Please mark posts as answered where appropriate.

  • How to change the default date in Person assignment tab?

    Hi experts,
    Does anyone know how to change the default date in person assignment tab in cj20n? Currently, the system always take the scheduled finish date to the date of the person assignment tab. Can I change it to the start date?
    Thanks and rgs,
    Michelle

    Hi Michelle,
    Goto SPRO->Project system->Dates->Scheduling->Specify Parameters for Network Scheduling, Here you can control the workforce planning dates.
    Hope this is useful...
    Regards
    Aatish

Maybe you are looking for

  • SAP HR IMG ABAP Error Help

    Hi, I am new to this site and I have a question. Recently, I had the "Vanilla SAP System" installed on a harddrive for my laptop. I am studying for the SAP HR Consultant Certification. However, the system doesn't have the training DB and I have to st

  • Third-party applications and input method in OS 10.7

    After updating to OS 10.7, the input method for Spell Catcher 10.4 does not load. Application functions in every way, except that I am am no longer able to utilize the interaction feature (i.e., can't paste from Spell Catcher to text file). What is t

  • Capital One Secured Card Changing

    I just had a long conversation with a Capital One CSR. I originally called to ask about the Credit Steps program on my new QS1 ($1k CL) and then asked about my existing Secured card ($99 dep for $300 Dec'14 -> $200 deposit -> $500 deposit -> $300 CLI

  • UE-V 2.1 log out while off network failing

    Using UE-V 2.1 Using folder redirection for desktop, documents, pictures, etc Win 8.1 U1 all updates Offline files enabled, machine is set to be always offline to allow for files to be locally cached so when a user goes home they do not need to get o

  • PDF / photoshop compatibilty issues

    When opening for instance a LR (72dpi) original pdf page in Photoshop and resaving it (etheir ways by Photoshop or with Adobe PDF printer) even without having made any change, the new file looks not as sharp as the original. The pictures and the text