Rename title column and delete a column into view custom list

Hi;
I try to create a new custom list with only 2 column DEC et DSCC and I would like to rename or change the title column (Titre in french) with the name "DEC" and next hide or delete into the view "All elements" the column attached file ("Pièces
jointes" in french).
My code is :
function CreateCustomList
  param(
  [string]$web
$spWeb = Get-SPWeb -Identity $web
$list=$spWeb.Lists.TryGetList($listeEspaceRTO)
if($list -eq $null)
 $spTemplate = $spWeb.ListTemplates["Liste personnalisée"]
 $spListCollection=$spWeb.Lists
 $spListCollection.Add($listeEspaceRTO,"Liste espace RTO",$spTemplate)
 $path = $spWeb.url.trim()
 $spList = $spWeb.GetList("$path/Lists/$listeEspaceRTO")
 $spList.Fields.Add("DSCC","URL",$false)
 $Views = $spList.Views["Tous les éléments"]
 //$Views.ViewFields.delete("Pièces jointes")
 //$Views.ViewFields.Add("DEC")
 $Views.ViewFields.Add("DSCC")
 $Views.Update()
else
  write-host -f yellow "la doc lib" $listeEspaceRTO "exits"
$spWeb.dispose()
The custom list is correctly created but with Title and the column "Pièces jointes" into the view.
Regards

Hi,
Glad to hear that you solve this issue, thanks for your sharing.
Thanks,
Linda Li
Linda Li
TechNet Community Support

Similar Messages

  • Is it possible to create an invoive that keeps a running total in one column and in another column keep total of monies spent from a starting amount of funding?

    Is it possible to create an invoive that keeps a running total in one column and in another column keep total of monies spent from a starting amount of funding?

    Hi Sara,
    Many thanks for your reply.  We just brought Adobe Acrobat XI Pro complete
    with Adobe Forms Central, My manager asked whether I could use the forms
    part to create a summary tracking sheet for all of our contracts.
    Having looked at it I could see how to create a table that in the first
    column deleted costs from a starting fund, and in the last keeps a running
    total of all monies spent.
    I agree, Excel does seem to be much better suited to the task.  I was try
    trying to comply with her request
    Regards,

  • Insert, update and delete on updatable join views

    Hi I need to insert, update and delete data in a views. I tried the foloing example
    http://download-uk.oracle.com/docs/cd/B14117_01/server.101/b10739/views.htm#i1006232
    We have two tables:
    CREATE TABLE dept (
    deptno NUMBER(4) PRIMARY KEY,
    dname VARCHAR2(14),
    loc VARCHAR2(13));
    CREATE TABLE emp (
    empno NUMBER(4) PRIMARY KEY,
    ename VARCHAR2(10),
    job VARCHAR2(9),
    mgr NUMBER(4),
    sal NUMBER(7,2),
    comm NUMBER(7,2),
    deptno NUMBER(2),
    FOREIGN KEY (DEPTNO) REFERENCES DEPT(DEPTNO));
    and one view:
    CREATE VIEW emp_dept AS
    SELECT emp.empno, emp.ename, emp.deptno, emp.sal, dept.dname, dept.loc
    FROM emp, dept
    WHERE emp.deptno = dept.deptno
    AND dept.loc IN ('DALLAS', 'NEW YORK', 'BOSTON');
    this update command works successfully
    UPDATE emp_dept
    SET sal = sal * 1.10
    WHERE deptno = 10;
    but this one fails because it attempts to modify the base dept table, and the dept table is not key preserved in the emp_dept view.:
    UPDATE emp_dept
    SET loc = 'BOSTON'
    WHERE ename = 'SMITH';
    I tried to create the view with "WITH CHECK OPTION" clause but whith no success :(
    My question is: how can I do this with a simple across this view. I rather not use Instead Of Trigger because it take a lot of PL/SQL code :(
    thanks in advance
    Operator

    UPDATE emp_dept
    SET loc = 'BOSTON'
    WHERE ename = 'SMITH';But that doesn't make sense. You cannot just LOC for SMITH, because LOC is not an attribute of EMP. If you change the LOC in the view then you must change it for all employees in DEPT 30 (or whatever).
    The key preserved thing is merely about maintaining your data integrity.
    I rather not use Instead Of Trigger because it take a lot of PL/SQL code :(The problem is, your business rule is not clear. Are you wanting to change the LOC for the DEPT record which is the DEPTNO to which SMITH belongs? Or are you wanting to change SMITH's DEPTNO to be the one for the BOSTON office?
    Cheers, APC

  • Find and item Search not working inside custom list in sharepoint 2013

    HI,
    In Sharepoint 2013 , i configured the Search. it is working in home page search Box and Find item search box  inside custom list as well But one particualr custom list  Find an item is not working. Any clue ?Thanks in Advance
    Thanks
    sanjay pradhan  

    Hi,
    According to your description, my understanding is “find an item” search box in a custom list not work in your environment.
    As search box and “find an item” search box in your home page are working, so the search service application is working.
    Do you have any customzation to the particular custom list ?
    If No, I suggest you can full crawl the data in Central Administration ->Manage Service Application->” Search Service Application”-> Manage Content Sources” to test if it works. 
    Also, please check if you have set "Allow items from this list to appear in search results" in list settings->Advanced Setting to true
    Best Regards
    Jerry Guo
    TechNet Community Support

  • When i changed the names of my books in iTunes, it did not changed in the iPad after i had synced it again with the changes. can anyone help? i had added authors to the author column and deleted their names from the book titles.

    i had added books to iBooks on iTunes and synced with my iPad mini. Then I realised that the titles sometimes had the author name, or a random number before it. I made changes to all the books in my iTunes library, edited the titles, added authors to the author columns, year in year column etc and synced my iPad again. but my iPad did not update these changes at all is still in the old way. can this be rectified?

    Have you tried closing the iTunes store app via the multitasking bar and seeing if it works when you re-open it
    Have you tried closing the app via the taskbar ? (I assume that your iPad is on iOS 6, though the version that your tagline shows, 6.1.6, is not a version for iPads) From the home screen (i.e. not with iTunes store app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the iTunes app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't fix it then you could try a soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Goldengate DDL Capture only for 'ADDING and DELETING' a column

    Hi
    Source Oracle 11.2
    GG Version: 11.2
    Target Oracle 11.2
    I am configuring the replication between oracle-oracle and regarding DDL replication ,for few tables , in addition to the DML replication , i want to capture only the DDL's related to the structure changes to the table (only adding or deleting a column) and noting else for ddl. For this ,  is the below command sufficient for my requirement or do i need to have the 'exculde' parameter specifying all those that needs to be excluded.If anything else needs to be configured , please let me know .
    DDL INCLUDE MAPPED include optype 'alter'
    Thanks in advance.

    yes your command is sufficient for alteration...
    example:
    DDL &
    INCLUDE UNMAPPED &
    OPTYPE alter &
    OBJTYPE ‘table’ &
    OBJNAME “scott.tab*” &
    INCLUDE MAPPED OBJNAME “*” &
    EXCLUDE MAPPED OBJNAME "scott.temp*"

  • Capturing DDL only for 'ADDING and DELETING' a column

    Hi
    Source Oracle 11.2
    GG Version: 11.2
    I am configuring the replication between oracle-oracle and regarding DDL replication ,for few tables , in addition to the DML replication , i want to capture only the DDL's related to the structure changes to the table (only adding or deleting a column) and noting else for ddl. For this ,  is the below command sufficient for my requirement or do i need to have the 'exculde' parameter specifying all those that needs to be excluded.If anything else needs to be configured , please let me know .
    DDL INCLUDE MAPPED include optype 'alter'
    Thanks in advance.

    Appreciate if someone can throw some light on this  as i am a bit confused after reading the doc.
    Thanks

  • Taking data from one column and spread it out into multiple columns

    I have a table that I wish to take the multiple values out of one column and stick each into its own column..
    The data looks like this:
    subscriber id benefit plan
    12345 Med
    12345 Drg
    98765 Med
    98765 Drg
    I want it to look like:
    subscriber_id pc_med
    12345
    select distinct subscriber_id,
    (select grp07_benefit_plan from martin_7265_anoc
    where grp07_benefit_plan_type = 'MEDICAL ') pc_med,
    (select grp07_benefit_plan from martin_7265_anoc
    where grp07_benefit_plan_type = 'DRUG ') pc_drg
    from martin_7265_anoc

    user12296489 wrote:
    I have a table that I wish to take the multiple values out of one column and stick each into its own column..Multiple values in a single column is a violation of relational design. Makes it very difficult to implement data integrity. And there is the inevitable complexity and performance knock when trying to extract distinct values from the single column.
    Thus your attempt at fixing it is hopefully a permanent solution and not a a hack trying to make a broken db design to work?
    As Daniel said, it is very hard to make any sense of the example you have posted. But this is not the first time here that a poster wants to extract multiple values from a string column - so the basic principles of how to do it, remains the same.
    You need to have a means to identify each distinct value. This is usually done by identifying the separator character used between values. Such as a space or a comma.
    If the values are fixed length, then you can use sub-strings with explicit positions and lengths to extract the values from the string.
    The typical case is the former, which means you need to tokenise (split) the string. There are a number of ways to do this. I posted an example in {message:id=1807978} that shows how to do it via a PL/SQL function. There are numerous other ways, such as using SQL only. If you search for a keywords like "+splitting string+", it should turn up these examples.

  • Creating a view with existing GeoRaster columns and new SDO_GEOMETRY column

    Hi,
    In a nutshell, I already have 1 real table, which has several attributes including types such as text, numbers etc. but also a GeoRaster column. This table works great, has its metadata stored properly and is spatially indexed; no worries.
    I am then creating a view based on the above mentioned table, including the GeoRaster column. This worked, no problems. However now I want the same view to also have a SDO_GEOMETRY column which explicitly stores the spatial extent for each GeoRaster. Note the original table does not have this SDO_GEOMETRY column. So, I have created a revised SQL statement to create the view, but now it dynamically adds a new column and puts the GeoRaster.spatialextents into the SDO_GEOMETRY column.
    This worked, the data made it into the view, but when we try to view the SDO_GEOMETRY in a viewer, we get errors. I added a system metadata entry for the view, but this did not help. Also, it is not possible to spatially index a view so I knew that was not the problem.
    I think what has happened is the SDO_GEOMETRY column is in a sort of "limbo", where because it was not contained in the original table (and indexed there) and it is not able to be indexed in a view, it cannot be manipulated/viewed/used spatially.
    Here is a snippet describing the original table:
    "IMAGERY_ID" NUMBER NOT NULL ENABLE,
    "CAM_ANGLE_X" NUMBER,
    "CAM_ANGLE_Y" NUMBER,
    "CAM_ANGLE_Z" NUMBER,
    "SPEED" NUMBER,
    "HEADING" NUMBER,
    "IMAGE_GEOR" "SDO_GEORASTER",
    "ACQUISITION_TIME" TIMESTAMP (6),
    "SENSOR_ID" NUMBER,
    "DOWNWARD_LOOKING" CHAR(1 BYTE),
    "ORG_ID" NUMBER,
    "POC_ID" NUMBER,
    "FILE_NAME" VARCHAR2(100 BYTE),
    "CORRELATION_ID" VARCHAR2(256 BYTE),
    And here is the statement I used to create the new view:
    CREATE VIEW level_0_img_view (imagery_id, cam_angle_x, cam_angle_y, cam_angle_z, speed, heading, image_geor, acquisition_time, sensor_id, downward_looking, org_id, poc_id, file_name, correlation_id, geor_extents)
    AS
    SELECT a.imagery_id, a.cam_angle_x, a.cam_angle_y, a.cam_angle_z, a.speed, a.heading, a.image_geor, a.acquisition_time, a.sensor_id, a.downward_looking, a.org_id, a.poc_id, a.file_name, a.correlation_id, a.image_geor.spatialextent
    FROM imagery a
    WHERE a.file_name LIKE '%.lev0';
    Note in the above statement that the "geor_extents" column is the new column added dynamically (and not in the original table). Note the new column with the SDO_GEOMETRY data is flawless, I have looked at the records in SQL developer and all the data is there.
    Any ideas?
    In case you're wondering, I do have reasons for: (i) wanting an explicit column with the SDO_GEOMTRY (serving via WFS), and (ii) not wanting to alter the original table to include the equivalent SDO_GEOMETRY column.
    Cheers,
    M.

    Hi,
    if you are having problems to display your view spatial columns in MapBuilder/MapViewer, you may be missing to register the view information in the metadata (name and spatial columns).
    For example, lets see the following table that simulates your case:
    SQL> desc pci_image;
    Name Null? Type
    GEORID NOT NULL NUMBER
    TYPE VARCHAR2(32)
    GEORASTER MDSYS.SDO_GEORASTER
    -- create a view
    create view pci_img_view (georid,georaster,geor_extents)
    as
    select a.georid,a.georaster,a.georaster.spatialextent
    from pci_image a;
    -- register metadata for view spatial columns (GeoRaster and geometry column)
    insert into user_sdo_geom_metadata
    select 'PCI_IMG_VIEW','GEORASTER.SPATIALEXTENT', diminfo, srid
    from user_sdo_geom_metadata where table_name = 'PCI_IMAGE'
    insert into user_sdo_geom_metadata
    select 'PCI_IMG_VIEW','GEOR_EXTENTS', diminfo, srid
    from user_sdo_geom_metadata where table_name = 'PCI_IMAGE'
    There is no need to index the spatial columns if they have been indexed before.
    Now, if you go in MapBuilder you should see the the view name in the list of geometry tables, and be able to create a theme on column GEOR_EXTENTS (select it on the combo box) and to preview it.
    For the GeoRaster column, currently the view name is not shown on the list of GeoRaster tables in MapBuilder.
    For GeoRaster data, MapBuilder uses the contents of metadata view user_sdo_geor_sysdata, and then it would be needed to register the view contents there. We will talk with Jeffrey to check if there is any problem in registering
    view contents in this metadata view. If the view name and georaster column is registered in user_sdo_geor_sysdata,
    then it should show in MapBuilder. But you can still create a GeoRaster theme for this view using a SQL command, and should be able to preview it in MapBuilder.
    -- create a GeoRaster theme based on view Georaster column.
    insert into user_sdo_themes values (
    'PCI_IMAGE_V_GEOR',
    'View of georaster column',
    'PCI_IMG_VIEW',
    'GEORASTER',
    '<?xml version="1.0" standalone="yes"?>
    <styling_rules theme_type="georaster" raster_id="1" raster_table="RDT_PCI" raster_bands="0,1,2">
    </styling_rules>');
    -- commit changes
    commit;
    Joao

  • Component has not input columns and/or input columns have invalid id when creating package programmatically

    I am developing an ETL tool which has to create SSIS packages dynamically (and later execute them without being edited in Data Tools). One of my proto type scenarios is a simple data flow from a flat file to a flat file - without anything in between.
    However there is a problem with the columns of the flat file destination - it says it doesn't have any.
    Saving the package to XML and opening the destination component in the advanced editor (tab "Input and Output Properties") really shows that are no input columns defined. One click on the tab "Column Mappings" however solves the
    problem. The columns and the mapping are generated, the package can run.
    I already tried to place "ReinitializeMetaData()" calls nearly anywhere in the code, for both components, unfortunately without success:
    destinationComponentWrapper.AcquireConnections(null);
    destinationComponentWrapper.ReinitializeMetaData();
    destinationComponentWrapper.ReleaseConnections();
    The actual error during validation is (When the line for column mapping in the code below is commented out):
    "0xC020201B - The number of input columns for Flat File Destination.Inputs[Flat File Destination Inputs] cannot be zero"
    I am also trying to insert a column mapping - this leads to a com error: 0xC020201B
    In this case I am wondering why Data Tools tell me that there are no input columns yet I can iterate over them - they just don't have a valid ID (0x8000004B / -2147483573) which is then causing the 0xC020201B.
    See also "PROBLEM HERE" marker in the code below.
    How can I make the destination component recognize the columns programmatically, as when I click on the "Column Mappings" tab of the advanced editor of the component in Data Tools?
    Here is the complete proto type code:
    using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
    using Microsoft.SqlServer.Dts.Runtime;
    using Microsoft.SqlServer.Dts.Runtime.Wrapper;
    using System;
    using System.IO;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using Dts = Microsoft.SqlServer.Dts;
    namespace msdatapipe
    class Program
    static void Main(string[] args)
    Dts.Runtime.Application application = new Dts.Runtime.Application();
    Dts.Runtime.Package package = new Dts.Runtime.Package();
    package.Name = "Data Commander DTS Package";
    // ADD PIPELINE TASK
    Dts.Runtime.Executable pipelineExecutable = package.Executables.Add("STOCK:PipelineTask");
    Dts.Runtime.TaskHost pipelineTaskHost = (Dts.Runtime.TaskHost)pipelineExecutable;
    pipelineTaskHost.Name = "Data Commander Pipeline Task";
    Dts.Pipeline.Wrapper.MainPipe pipelineTask = (Dts.Pipeline.Wrapper.MainPipe) pipelineTaskHost.InnerObject;
    // ADD SOURCE COMPONENT TO THE PIPELINE TASK
    String sourceFilePath = "C:\\cmi\\tmp\\data.csv";
    Dts.Runtime.ConnectionManager sourceConnectionManager = package.Connections.Add("FLATFILE");
    sourceConnectionManager.ConnectionString = sourceFilePath;
    sourceConnectionManager.Name = "Source Connection";
    sourceConnectionManager.Description = "Source Connection Manager";
    sourceConnectionManager.Properties["ColumnNamesInFirstDataRow"].SetValue(sourceConnectionManager, "True");
    sourceConnectionManager.Properties["Format"].SetValue(sourceConnectionManager, "Delimited");
    sourceConnectionManager.Properties["TextQualifier"].SetValue(sourceConnectionManager, "\"");
    sourceConnectionManager.Properties["CodePage"].SetValue(sourceConnectionManager, "65001");
    sourceConnectionManager.DelayValidation = false;
    // START --- MANUALLY READ COLUMNS FROM TEXT FILE AND ADD TO SOURCE CONNECTION MANAGER COLUMNS
    IDTSConnectionManagerFlatFile100 sourceConnectionInterface = sourceConnectionManager.InnerObject as IDTSConnectionManagerFlatFile100;
    using (StreamReader reader = new StreamReader(sourceFilePath))
    String firstSourceFileLine = reader.ReadLine();
    String[] columnNames = firstSourceFileLine.Split(',');
    for (int i = 0; i < columnNames.Length; ++i)
    columnNames[i] = columnNames[i].Substring(1, columnNames[i].Length - 2);
    IDTSConnectionManagerFlatFileColumns100 sourceColumns = sourceConnectionManager.Properties["Columns"].GetValue(sourceConnectionInterface) as IDTSConnectionManagerFlatFileColumns100;
    IDTSConnectionManagerFlatFileColumn100 column = null;
    foreach (String columnName in columnNames)
    column = sourceColumns.Add();
    column.DataType = DataType.DT_TEXT;
    column.ColumnDelimiter = ",";
    column.TextQualified = true;
    (column as IDTSName100).Name = columnName;
    Console.WriteLine(columnName);
    column.ColumnDelimiter = "\r\n";
    // END --- MANUALLY READ COLUMNS FROM TEXT FILE AND ADD TO SOURCE CONNECTION MANAGER COLUMNS
    sourceConnectionInterface.RowDelimiter = "\r\n";
    Dts.Pipeline.Wrapper.IDTSComponentMetaData100 sourceComponent = pipelineTask.ComponentMetaDataCollection.New();
    sourceComponent.Name = "Flat File Source";
    sourceComponent.ComponentClassID = "DTSAdapter.FlatFileSource";
    sourceComponent.ValidateExternalMetadata = true;
    CManagedComponentWrapper sourceComponentWrapper = sourceComponent.Instantiate();
    sourceComponentWrapper.ProvideComponentProperties();
    // LINK CONNECTION TO THE SOURCE COMPONENT
    sourceComponent.RuntimeConnectionCollection[0].ConnectionManager = Dts.Runtime.DtsConvert.GetExtendedInterface(sourceConnectionManager);
    sourceComponent.RuntimeConnectionCollection[0].ConnectionManagerID = sourceConnectionManager.ID;
    // Connect to the data source, and then update the metadata for the source.
    //sourceComponentWrapper.Validate();
    //sourceComponentWrapper.ProvideComponentProperties();
    sourceComponentWrapper.AcquireConnections(null);
    sourceComponentWrapper.ReinitializeMetaData();
    sourceComponentWrapper.ReleaseConnections();
    // ADD DESTINATION CONNECTION MANAGER
    Dts.Runtime.ConnectionManager destinationConnectionManager = package.Connections.Add("FLATFILE");
    destinationConnectionManager.ConnectionString = "C:\\cmi\\tmp\\data_out.csv";
    destinationConnectionManager.Name = "DatComConOut";
    destinationConnectionManager.Description = "Data Commander Connection Manager";
    destinationConnectionManager.DelayValidation = false;
    destinationConnectionManager.Properties["Format"].SetValue(destinationConnectionManager, "Delimited");
    destinationConnectionManager.Properties["TextQualifier"].SetValue(destinationConnectionManager, "\"");
    destinationConnectionManager.Properties["CodePage"].SetValue(destinationConnectionManager, "65001");
    // ADD DESTINATION COMPONENT
    Dts.Pipeline.Wrapper.IDTSComponentMetaData100 destinationComponent = pipelineTask.ComponentMetaDataCollection.New();
    destinationComponent.Name = "Flat File Destination";
    destinationComponent.ComponentClassID = "DTSAdapter.FlatFileDestination";
    destinationComponent.ValidateExternalMetadata = true;
    CManagedComponentWrapper destinationComponentWrapper = destinationComponent.Instantiate();
    destinationComponentWrapper.ProvideComponentProperties();
    destinationComponent.RuntimeConnectionCollection[0].ConnectionManager = Dts.Runtime.DtsConvert.GetExtendedInterface(destinationConnectionManager);
    destinationComponent.RuntimeConnectionCollection[0].ConnectionManagerID = destinationConnectionManager.ID;
    // CREATE PATH
    Dts.Pipeline.Wrapper.IDTSPath100 pipelinePath = pipelineTask.PathCollection.New();
    pipelinePath.AttachPathAndPropagateNotifications(sourceComponent.OutputCollection[0], destinationComponent.InputCollection[0]);
    // DESTION CONNECTION MANAGER COLUMNS
    IDTSConnectionManagerFlatFile100 destinationConnectionInterface = destinationConnectionManager.InnerObject as IDTSConnectionManagerFlatFile100;
    IDTSConnectionManagerFlatFileColumns100 destinationColumns = destinationConnectionManager.Properties["Columns"].GetValue(destinationConnectionManager) as IDTSConnectionManagerFlatFileColumns100;
    // START --- MANUALLY READ COLUMNS FROM DESTINATION COMPONENT AND ADD THEM TO DESTIONATION CONNECTION MANAGER COLUMNS
    foreach (IDTSInput100 input in destinationComponent.InputCollection)
    IDTSVirtualInput100 virtualInput = input.GetVirtualInput();
    IDTSConnectionManagerFlatFileColumn100 column = null;
    foreach (IDTSVirtualInputColumn100 virtualInputColumn in virtualInput.VirtualInputColumnCollection)
    column = destinationColumns.Add();
    column.DataType = DataType.DT_TEXT;
    column.ColumnDelimiter = ",";
    column.TextQualified = true;
    (column as IDTSName100).Name = virtualInputColumn.Name;
    column.ColumnDelimiter = "\r\n";
    // END --- MANUALLY READ COLUMNS FROM DESTINATION COMPONENT AND ADD THEM TO DESTIONATION CONNECTION MANAGER COLUMNS
    // NEED TO CREATE NEW META DATA AFTER COLUMNS
    destinationComponentWrapper.AcquireConnections(null);
    destinationComponentWrapper.ReinitializeMetaData();
    destinationComponentWrapper.ReleaseConnections();
    // MAP INPUT COLUMNS
    foreach (IDTSInput100 input in destinationComponent.InputCollection)
    IDTSVirtualInput100 virtualInput = input.GetVirtualInput();
    foreach (IDTSVirtualInputColumn100 virtualInputColumn in virtualInput.VirtualInputColumnCollection)
    Console.WriteLine("VIC " + virtualInputColumn.Name + "(" + virtualInputColumn.ID + ")");
    destinationComponentWrapper.SetUsageType(input.ID, virtualInput, virtualInputColumn.LineageID, DTSUsageType.UT_READONLY);
    foreach (IDTSExternalMetadataColumn100 metadataColumn in input.ExternalMetadataColumnCollection)
    if (virtualInputColumn.Name.Equals(metadataColumn.Name)) {
    // PROBLEM HERE:
    // An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in msdatapipe.exe
    // Additional information: Exception HRESULT: 0xC0047072
    // at this point is virtualInputColumn.ID = -2147483573
    destinationComponentWrapper.MapInputColumn(input.ID, virtualInputColumn.ID, metadataColumn.ID);
    // if the code is commented out and the program rerun there is a package validation error instead: 0xC020201B
    // 0xC020201B - The number of input columns for Flat File Destination.Inputs[Flat File Destination Inputs] cannot be zero
    // NEED TO CREATE META DATA AFTER COLUMNS HAVE BEEN ADDED TO THE DESTIONATION MANAGER
    // AND USAGE TYPE HAS BEEN SET OR WE'LL GET A VS_NEEDSNEWMETADATA
    destinationComponentWrapper.AcquireConnections(null);
    destinationComponentWrapper.ReinitializeMetaData();
    destinationComponentWrapper.ReleaseConnections();
    // SAVING DTSX PACKAGE FOR DEBUGGING
    application.SaveToXml("C:\\Users\\CMI\\documents\\visual studio 2010\\Projects\\SSIS Tutorial\\SSIS Tutorial\\generated.dtsx", package, null);
    Microsoft.SqlServer.Dts.Runtime.DTSExecResult packageResults = package.Execute();
    Console.WriteLine("package execution result: " + packageResults.ToString());
    // Basic check for errors
    foreach (DtsError error in package.Errors)
    Console.WriteLine("ErrorCode : 0x{0:X}", error.ErrorCode);
    Console.WriteLine(" SubComponent : {0}", error.SubComponent);
    Console.WriteLine(" Description : {0}", error.Description);
    Console.WriteLine("press the return key hard to continue...");
    Console.Read();

    I suggest you revise your code against examples given in http://blogs.msdn.com/b/mattm/archive/2008/12/30/samples-for-creating-ssis-packages-programmatically.aspx
    Arthur My Blog

  • 2 header columns and 3 body columns

                                                                        
    Hi
    i have designed a dynamic table with 2 header columns and the body rows are dynamic,
    my requirement would have
    an image attached to the cell1 of the body row each time it repeats ,i am getting the image field
    from XML
    my issue is
    how to create a table with two header columns and have three body cloumns(including the image,
    if say i have created a table with three columns , is there a way that we could supress the line between two cells that comes when we create a table.
    Thanks in advance
    please find the attached doc .

    Hi Paul
    Thank you very much for the reply, yeah i tried to merge cells on my header colunm and it worked,
    but on the body  columns where i have 3 cells
    cell1 -->LOGO_BENEFITS--> image field
    cell2 ---> TITLE_BENEFITS -->text field
    cell3---> STATUS_BENEFITS--->text field
    here i have a issue (i dont know much of XML and i am passing the above 3 cells below as follows:
    <SF5>
    <LOGO_BENEFITS>C:\Logos\icon_SF5_grey.gif</LOGO_BENEFITS>
    <TITLE_BENEFITS>BENEFIT1</TITLE_BENEFITS>
    <STATUS_BENEFITS>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</STATUS_BENEFITS>
    </SF5>
    <SF5>
    <LOGO_BENEFITS>C:\Logos\icon_SF6_grey.gif</LOGO_BENEFITS>
    <TITLE_BENEFITS>BENEFIT2</TITLE_BENEFITS>
    <STATUS_BENEFITS>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</STATUS_BENEFITS>
    </SF5>
    ISSUE 1.
    1) i am not able to see the picture in the pdf. (for some reason it just showing blank space in place of the image_field) --(is there any thing wrong in the way i am appending the path for the pic in my XML)
    2) considering the image shows up, how do i supress the two cells in to one  in the body column (cell1 and cell2) .
    Thanks again for your time
    de1209

  • Defining event handlers for renaming, moving, copying and deleting of files.

    Hi every one.
    I had created a tool for InDesign CS6 written using Javascript to manipulate portions of text in nested way by marking them with small non-printing small anchored text frames contains sequenced numbers and storing these portions as snippets in a spicific folder beside the InDesign documents.
    This tool is open source and free of charge, the only this that I want from you (after downloading) as a user to feedback and as a developer to improve it and join me.
    sourceforge.net/projects/livesnippets
    My question is not about this but I want to trace when the user rename, move, copy or delete a file of these snippets or any container folder and interact according to that by reserving the links between snippet files and their instances which interspersed in InDesign documents.
    Thanks.

    Here is an example of using Bridge events… What this scrript will do if you add it to Bridge scripts… is set *all* indesign snippets in the folders you browse to… to be locked/readonly… This means that users will get an extra dialog if they want to delete the file… Finder or Bridge… You can't just rename the file Finder or Bridge… and Bridge's Batch Rename will only function if the user makes copies to new location… You could set this property using the File Object with indesign…
    #target bridge
    onDocLoaded = function( event ) {
        if ( event.object instanceof Document && event.type == 'loaded' ) {
            lockIDSnippets();
            return { handled: true };
    function lockIDSnippets() {
        var i, count, doc, thum;
        doc = app.document;
        count = doc.visibleThumbnailsLength;
        for ( var i = 0; i < count; i++ ) {
            thum = doc.visibleThumbnails[i];
            if ( /\.idms/.test( thum.spec.name ) ) {
                thum.spec.readonly = true;
    // Register event handler
    app.eventHandlers.push( { handler: onDocLoaded } );

  • DIfference b/w expression builder logical column and derived logical column

    Hi Experts,
    Can anyone tellme the difference between expression builder (when we double click the logical column) of derived logical column and expression builder of logical column( we see this in column mapping of LTS) ??
    Thanks in advance.

    Hi,
    Formula given in the "expression builder of logical column( we see this in column mapping of LTS)" is performed on the physical layer of the RPD. I guess it is calculated in the Physical Query which is good for performance.
    Formula in the expression builder of derived column is calculated in the BMM layer i.e in the logical query.
    Regards,
    Amrutha.

  • Transpose columns and rows / Switch columns and rows

    Hello,
    Is it possible to interchange columns and rows in order to create a left-to-right scrolling table instead of a top-to-bottom scrolling one?
    In detail:
    I have this:
          | col 1 | col 2 | col 3
    row 1 |       |       |
    row 2 |       |       |
    row 3 |       |       |
    ...   |       |       |
    ...and want to have this:
          | row 1 | row 2 | row 3 | ...
    col 1 |       |       |       |
    col 2 |       |       |       |
    col 3 |       |       |       |
    Does anyone know if this is possible with the standard table or the ALV?
    Thanks in advance & Kind regards,
    Robert

    Hi,
    So there is no easy solution by just setting a flag in the ALV config!? ...too bad!
    As for the dynamic creation:
    Would there be an issue with different data types in one "column" (former row)? As a matter of fact there probably will be a mix of character, numbers, ...
    Regards,
    Robert

  • How do I add a bookmark to the Bookmark toolbar permanently and delete it from the Recntly Bookmarked list?

    It seems to me that in a previous version of Firefox that one could add a bookmark to the Bookmarks Toolbar and have it stay there.
    I like to keep things neat and tidy. Now when I delete this bookmark from the Recently Bookmarked list (or the Unsorted Bookmarks list), Firefox insists only deleting it from the Bookmarks Toolbar as well.
    How do I add a bookmark to the Bookmarks toolbar and keep it there? Am I required to keep it in the Recently Bookmarked and/or Unsorted Bookmarks list in order to have it remain on the Bookmarks Toolbar?

    * "Most Visited" and "Recently Bookmarked" and "Recent Tags" are examples of so called [[Smart Bookmarks folders|Smart Bookmarks folders]] and are not real existing folders.
    * Smart folders show a list created by a query of the places.sqlite database that stores bookmarks and history in Firefox.
    * Smart folder lists show a maximum of 10 entries by default.
    * Bookmarks and history items that show up in a smart folder list are stored elsewhere in another folder and any changes made are applied to the real bookmark or history item.
    * If you remove an entry then the list is shifted up and a new entry that wasn't shown previously is added to show 10 entries.
    * If you add a new bookmark or visit a website then a new item is added at the top and the entry at the bottom disappears from that list.

Maybe you are looking for

  • My IPod shows up in ITunes but not on the desktop or finder

    I can't find my IPod in any place other than ITunes and I am trying to migrate it to a new computer

  • Invalid Code [Journal Entry] Line 2

    Hi All I did a patch upgrade from SP00 PL49 to SP01 PL05, now i get the error message listed in the Title; Invalid Code [Journal Entry] Line 2, 2000/100 when doing outgoing payments to Creditors if I select the AP invoices, if i say payment on accoun

  • HP 7520 estation printer running on Vista.

     Yesterday I was able to get the printer to print wirelessly but could not get the network to show on the Zeen.  This morning I have lost the wireless connection and cannot get anything to print.  Phone and ipad show air printer not found.  Printer w

  • Something Went Wrong Trying to install...

    I haven't every been able to get AIR to work on my laptop since it was called Apollo, but I got a bunch of cool links to stuff at MAX that I wanted to try out, so I uninstalled the AIR Runtime I had, rebooted, installed AIR 1.5, and now all attempts

  • IPod touch 3 volume and date problem

    My cousin was using my iPod touch 3 when she came to visit. Now she's gone only one side of the volume works in earbuds which is the right. without earuds it sounds like the left side. Also the date and time keeps missing up. ex. my iPod touch 4 ran