Save data with EntityManager

Hi,
I would like to save data to a database with EntityManager. But not in the sun-appserv-samples (what the Netbeans uses). Is it possible to choose another database?
Thanks in advance any help.

First of all I would like to thank you for your replies. You're absolutely right. I don't understand every step I do. But I would like to understand.
In the first step I made an Enterprise Application Project. After that I made a JDBC Connection Pool on the part of the teszt-ejb / Server Resource. Here is the glassfish-resources.xml. Maybe it'll help.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions//EN" "http://glassfish.org/dtds/glassfish-resources_1_5.dtd">
<resources>
  <jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="oracle.jdbc.pool.OracleDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="connectionPool" non-transactional-connections="false" pool-resize-quantity="2" res-type="javax.sql.DataSource" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
    <property name="URL" value="jdbc:oracle:thin:@localhost:1521"/>
    <property name="User" value="admin"/>
    <property name="Password" value="admin"/>
  </jdbc-connection-pool>
</resources>

Similar Messages

  • Problem with Save data with report

    Post Author: ramprosoft
    CA Forum: General
    Hi,
    I am new to CR and using Crystal Reports XI with SQL Server 2000.
    I'm not able to remove the saved data in a report. I have played around different options, but unfortunately I'm not able to remove the data. I have checked variouse places in web above this issue not able to find a solution, so decided to open a new post. The problem is :
    I have created a simple report and saved with-out data (1st version) the file size was 16KB. After few changes I have saved the same report with Data, the file size become 1065 KB. Its perfect and I can view the report in Report Viewer. Great Stuff!. Now the Testing completed, I would like to move this report to production environment, I notice that I'm unable to remove the data. I have played around various tricks like below, but it didnt work well.
    Trick 1:
    Uncheck: File->Options->Reporting (tab)->Save Data With Report.
    Check: File -> Options -> Reporting (tab)->Discard Saved data on Open,
    Uncheck: file-> Report Options -> Save Data With Report.
    File -> Save Data with Report (Not selected)
    Opened the report and try "save" and also tried "save as", still the size is 1065.
    Trick 2:
    I enabled all "Save Data with report" feature. Deleted all the rows in the table related to the query, previewed the report and Saved the report with "Save Data with report" featuer. But now, the funny part happen, the file size increased to 1070kb, instead of reducing. Worst Stuff!!!
    Trick 3:
    Updated the latest version of Patch and tried above tricks, still i'm not able to remove the data.
    Appreciate, if you could help me to fix the problem.
    thanks in advance

    Post Author: salmanq
    CA Forum: General
    Hi, This
    post is very informative, however I would like some specific information. If
    someone can help me then please send me a private message. Best Regards,
    Wholesale Pages UK Dropshippers
    | Wholesale Suppliers
    Australia Wholesalers and
    Dropshippers | Dubai Property and Real Estate

  • Save Data with Reports

    Hi Friends,
    The Report Option has Save Data with Reports.
    What is Merit and Demerit of having this option on?
    Thanks and regards

    If you select the report option save data with report - i think it will save the report along with the data retrieved at that particular time.
    When open the report again it will show that data. The crystal reports will not search for new data, If click refresh then it will try to get the updated data. If you save the report with data, if publish the report in Infoview- open the report it will display the data without going for the dynamic data. If you schedule it then it will get the latest data from db server.
    You can view the data in crystal  reports viewer if you save the data along with the report.
    sorry for my english!!
    Regards,
    Parsa.

  • Save data with SubReport

    How to save data with SubReport so I can view the report later without connecting to the data source?
    Does the ReportDocument SaveAs(some name, true) Saves the data with SubReport?

    Iu2019m sorry to tell that this solution is no longer valid for somehow!!! It was working, but suddenly it becomes not working.
    What I did is I have installed Visual Studio 2010 and before releasing a new version of my solution, I checked the reports module. I found that again it is not working.
    One client will save a report to the disk using this code:
    CrystalDecisions.CrystalReports.Engine.ReportDocument rdc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
                rdc.Load(ReportFileNamePath/, OpenReportMethod.OpenReportByTempCopy/);
    rdc.ReportOptions.EnableSaveDataWithReport = true;
                            //rdc.ReportOptions.EnableSavePreviewPicture = true;
                            //rdc.ReportOptions.EnableSaveSummariesWithReport = true;
    u2026 Set Parameters then the connection
    CrystalDecisions.Shared.ReportPageRequestContext rprc = new CrystalDecisions.Shared.ReportPageRequestContext();
                            int nPages = rdc.FormatEngine.GetLastPageNumber(rprc);
    rdc.SaveAs(cNewFileName, true);
    rdc.Close();
    rdc.Dispose();
    // At this moment the report is saved and HasSavedData returns true
    // The report will be sent to his manager by email.
    In the other client:
    CrystalDecisions.CrystalReports.Engine.ReportDocument rdc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
    rdc.Load(ReportFileNamePath/, OpenReportMethod.OpenReportByTempCopy/);
    // At this moment the report HasSavedData returns false!!!
    CrystalReportViewr1.ReportSource = rdc;
    CrystalReportViewr1.Show();
    // At this moment it will take some time then the parameters dialog appears.
    // Then I tried to re-apply the parameter to the CrystartReoprtViewer1.ParameterFieldInfo or even to the rdc.ParameterFields but no luck.
    Then I tried to set the connection to the ReportSource such as
    crv.LogOnInfo.Add(logOn);
                CrystalDecisions.CrystalReports.Engine.Tables tables =
                    ((CrystalDecisions.CrystalReports.Engine.ReportDocument)crv.ReportSource).Database.Tables;
                foreach (CrystalDecisions.CrystalReports.Engine.Table tbl in tables)
                    TableLogOnInfo objTableLogOnInfo = new TableLogOnInfo();
                    objTableLogOnInfo.ConnectionInfo = objConnectionInfo;
                    tbl.ApplyLogOnInfo(objTableLogOnInfo);
    But no luck again. It is only a try.
    Please note that I did not change any report source or even my code.
    My question is why the load does not load the saved data?
    As usual, Iu2019m sorry for my bad English.
    Edited by: Tariq Salah on Nov 29, 2010 7:01 PM

  • No "save data with report"

    Hi
          I have a report with prompts... I saved the report with "_save data with report_". If i didnt do the "save data with report" ,every time I run the report ,its asking for selecting  Prompts.
    My question is
          when i run the report , It should not ask for prompts and I need to fetch the latest data from the database but not the saved data .
    Plz get me out of this situation.
    Thank u 

    Hi Dans,
    Purpose of parameters:
    The purpose of creating prompts in the report is to filter  the data as per user's requirement.Whenever you refresh the report it is going to ask for the parameter values as the crystal engine will fire the required query on the database and include the parameter values in the 'where' clause of this query.In the absence of filters report fetches all the records in the databse which can significantly impact the performance of this report.
    Minimum requirement for getting refreshed data:
    In order to fetch the refreshed data (and not the saved one) the query needs to be complete before executing and thus the where clause condition needs to be complete as well.
    To solve your issue:
    In your case,if you want to avoid being prompted then you may hard code the desired filters in the record selection formula(Report>>Selection formuls>>Record) say as in Order_id not in (,,,,,,,) and order_date>'' etc
    Limitations:
    However after hard coding the values you may loose the flexibility of choosing the filter values at runtime.
    If you have any further queries please keep this thread updated.
    Thanks

  • Save data with more than 6 decimal places in SAP MDM 5.5

    Hi there,
    I need some help concerning saving data with about 20 decimal places (e.g. 0,00452961328622164) in MDM. I declared the datatyp "REAL", there are only 6 decimal places possible.
    How can I save this Data? Maybe exponential function?
    Please help.
    Thank you
    Thomas Pfab

    currency takes you to 14 decimal places, if you want to have it as a little work around....you can always take out that symbol if it is annoying.(ohhh and decimal is multilingual too in currency, probably not a good hack!)
    or without even knwoing what your requirement is? try normalizing the value, How many more decimal places can you hit?
    One 100 1. "ten to the zero"
    tenth 10-1 0.1 "ten to the minus one"
    hundredth 10-2 0.01. "ten to the minus two"
    thousandth 10-3 0.001. "ten to the minus three"
    ten thousand 10-4 0.0001. "ten to the minus four"
    hundred thousandth 10-5 0.00001. "ten to the minus five"
    millionth 10-6 0.000001 "ten to the minus six"
    ten millionth 10-7 0.0000001. "ten to the minus seven"
    hundred millionth 10-8 0.00000001. "ten to the minus eight"
    billionth 10-9 0.000000001. "ten to the minus nine"
    ten billionth 10-10 0.0000000001. "ten to the minus ten"
    hundred billionth 10-11 0.00000000001. "ten to the minus eleven"
    trillionth 10-12 0.000000000001 "ten to the minus twelve"
    ten trillionth 10-13 0.0000000000001. "ten to the minus thirteen"
    hundred trillionth 10-14 0.00000000000001. "ten to the minus fourteen"
    and put that field label indicating the 10th power. Like "Accuracy in 10 POW -9"
    Just a wild guess.well thats how we usually show data in catalogues too!
    (or)
    separate the integer and decimal portions into two fields and store it in the repository.(split on ',')
    -Sudhir.

  • Save date with precision (Hour, Minutes, seconds ) using V.O.

    Hi all,
    I'm using Jdeveloper 11g.
    I have an Entity object with a column called 'createdOn' of type Date and an entity based View Object with the same type.
    I'm trying to save today's Date with precision (day, month, year, hour, minutes, seconds) Using the view Object, but when I look in the Data Base, always appears the date without time.
    Here is my code in the application Module to save the data, I've tried some things but nothing...
    First I've tried using oracle.jbo.domain.Date, and I've tryed using Calendar as well. Nothing with
    ViewObjectImpl voSample = getSamples1View1();
    //Date creation for View Object
    oracle.jbo.domain.Date today = new Date(Date.getCurrentDate());
    //Calendar today = Calendar.getInstance();
    //loop through the list of samples (TESTGROUPTYPES), and create the objects
    while( it.hasNext())
    Row rowSample = voSample.createRow();
    SequenceImpl sequence = new SequenceImpl("SAMPLES_SEQ", voSample.getApplicationModule());
    rowSample.setAttribute("SampleId", sequence.getSequenceNumber());
    rowSample.setAttribute("CollectionId", stCollectionId);
    rowSample.setAttribute("TestgroupType",it.next());
    rowSample.setAttribute("UnitId",stUnitId);
    rowSample.setAttribute("SampleStatus", "ORDERED");
    rowSample.setAttribute("SampleBackup", "false");
    rowSample.setAttribute("CreatedOn", today);
    voSample.insertRow(rowSample);
    voSample.getApplicationModule().getTransaction().commit();
    Any help will be usefull,
    thanks in advance
    XAVI.

    Hello John,
    yes, I changed the date mask using
    alter session set NLS_DATE_FORMAT='DD/MM/YYYY-hh24:mi:ss'
    if i execute to_char(<date_column>, 'YY-MON-DD HH:MI:SS') on that column, the result is:
    09-MAY-27 12:00:00
    09-MAY-27 12:00:00
    09-MAY-27 12:00:00
    To launch the queries and see the results I'm using the JDeveloper's SQL WorkSheet.
    I can update the data and time and the time persists in the DB
    08-FEB-26 08:07:56
    so, i think there's something in hte EO, VO or App Module method that I'm doing wrong...
    The Entity Attribute is confirured:
    name: CreatedOn
    Type: Date
    Value type: literal
    Values checked: Persistent, Precision Rule and Queryable
    database column: CREATED_ON, type: DATE
    The View attribute is configured:
    Name: CreatedOn
    Type: Date
    Value type: Literal
    checked: Mapped to Column or SQL, Selected in query, queryable
    query column: Alias: CREATED_ON, Type: DATE

  • Save DAT with userdefine​d property in DIAdem

    Hi,
    I am working with DIAdem 9.1. Using
    DataFileLoad(...)
    GroupPropCreate(...)
    GroupPropSet(...)
    we load a data-file and store some information of the file in new properties. This works, we see the new properties and correct values in DataNavigator.
    Afterwards, we want to save the datafile together with the new properties using
    Call DataFileSaveSel(FileDlgFile+FileDlgExt, "DD8x", "'[1]/[1]' - '[1]/[" & GroupChnCount(1) & "]'") 
    However, the new properties are not saved. When we open the file again, the properties dont exist.
    Can anybody help, please?
    Thanks
    Thi

    Hello Thi,
    properties are a new feature from the DIAdem 9 dataset-format (files with the extention .TDM). With the option "DD8x" you store the data in the old dataformat DAT (until verstion 8 of DIAdem). The properties can not be stored in this format.
    Change the format into TDM or use the old way to store comments.
    In the DAT-file-format you can store 100 comments (couples of name + value):
    dataSetCommentN(i)
    dataSetComment(i)
    with i in 1..100.
    A. Weiland
    Andreas Weiland
    Projektingenieur
    measX GmbH & Co. KG, www.measX.com

  • Diadem Does not save data to neither portal nor file

    I tried to acquire data from DAQ USB-6289 and save data to portal or file in DIADem DAC, but failed to get any data in portal, and no file was created, and no error was promptEd. But when I open a example file with saving function, it works fine. I'm sure there isn't any problem about the script since it is a very simple one. Do you have any suggestions?
    Thanks a lot.
    Jing

    Hi Jing -
    Since you said you're building your scheme based off of an example, I'm going to assume you've already included a Save Data or Save Data with Trigger block in your DAC scheme.  This is mandatory if you want to use Data Storage with either of the two following techniques.
    If you're running your DAC scheme programmatically, are you using the SchemeMeasTest() command, or the SchemeMeasStart() command?  If you want your DAC scheme to be run with Data Storage (Data Portal or File) enabled, you'll need to use the SchemeMeasStart() command.  The other command merely runs the scheme with visualization only (as a test).
    If you're running your DAC scheme interactively, are you pressing the Start Display button or the Start Measurement button (see below)?  These two buttons are the interactive versions of the aforementioned programmatic commands.  If you want to test your visualization without Data Storage, use the Start Display button.  If you want data to be saved to either the Data Portal or File, use the Start Measurement button.  
    Let me know if this still doesn't help.
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments

  • Error: Unparseable date with OracleXMLSave

    Hi,
    Error:
    oracle.xml.sql.OracleXMLSQLException: java.text.ParseException: Unparseable date: "03/18/2099"
    int oracle.xml.sql.dml.OracleXMLSave.insertXML(org.w3c.dom.Document)
    void b2b.RcvQueueListener.saveCsmToTso(oracle.xml.parser.v2.XMLDocument)
    void b2b.RcvQueueListener.<init>()
    void b2b.RcvQueueListener.main(java.lang.String[])
    I've tried to save a row in the database with OracleXMLSave:
    I use JDeveloper 3.1.1.2 with XDK 2.? and a local Oracle 8.1.6 unde NT.
    // XML Doc:
    <ROWSET>
    <ROW NUM="1">
    <CSM_NO>A29912</CSM_NO>
    <CRE_DAY_CSM>03/18/2099</CRE_DAY_CSM>
    <CSM_VOL_GRO_FRZ>59.89</CSM_VOL_GRO_FRZ>
    </ROW>
    </ROWSET>
    // Set java enviroment:
    Locale.setDefault(java.util.Locale.US);
    // Save Data with XSU like:
    OracleXMLSave sav =
    new OracleXMLSave(cn.getConnection(), "consignment_t");
    sav.insertXML(csmData);
    Same Error when trying to...
    (1) set date format for OracleXMLSave:
    > sav.setDateFormat("DD/MM/YYYYY");
    (2) set database parameter:
    > nls_date_format='DD/MM/YYYY';
    > nls_language='AMERICAN';
    (3) set registry (winnt)
    > nls_lang=AMERICAN_AMERICA.WEISO8859P1
    Help would be appreciated.
    Thanks in advance!
    Matthias.

    setDateFormat() is expecting a format mask that is valid for the java.text.SimpleDateFormat object.
    So, just do:
    setDateFormat("d/M/yyyy");
    null

  • Hi am trying to save Data into a write to measurement file vi using a NI PXI 1042Q with a real time mode but it is not working but when i run it with uploading it into the PXI it save in to the file

    Hi am trying to save Data into a write to measurement file vi using a NI PXI 1042Q and DAQ NI PXI-6229 with a real time mode but it is not working but when i run it without uploading it into the PXI it save in to the file please find attached my vi
    Attachments:
    PWMs.vi ‏130 KB

     other problem is that the channel DAQmx only works at real time mode not on stand alone vi using Labview 8.2 and Real time 8.2

  • Save waveform data with corresponding time array to spreadsheet file

    Hello to all
    I am looking for a possibility to save voltage data acquired and displayed continousely to a spreadsheet file. Acquiring and displaying is not a big problem, but I have troubble to save the data with the corresponding timestamp with more than seconds accuracy. I am acquiring the data at 1000 Hz and read packages of 500 samples. The recording time should not be limited, it will be started and stopped manually. In fact the acquired voltage data first has to be scaled and than saved. If I use the 'WRITE WAVEFORM TO SPREADSHEET' VI the time column is in seconds' accuracy and that is not what I need. If I create my own time array from the waveform parameters I have timing problems. The accuracy in time should reflect the sample rate. I will attach one of my not very successful trials for better understanding.
    please help a newcomer!
    Thanks in advance
    Thomas
    LV 7.1
    Attachments:
    display & record forces v.1.0.vi ‏181 KB

    I usually follow a simple method to generate time stamp
    I keep sampling rate and number of samples to read as equal and do as shown in the attached VI
    I also remember building a VI with a small modification to this time stamp generation logic to cater to acq, where number of samples to read is half/one fourth/one tenth of sampling rate specified, but cannot find that VI.
    Hope this helps
    Regards
    Dev
    Attachments:
    Acq_DAQmx_filesave_time stamp.vi ‏121 KB

  • How to save data aquired with NI mydaq and save it in a data base using Labview?

    i have developped with labview an interface that can control automatic irrigation station using two sensors ( humidity sesonr and temperature sensor) so i want to save data aquired during a year in a data base so i can compare these results in the next year please help me to do that in my interface labview and thanks 
    Attachments:
    PFE.vi ‏223 KB

    There is a database toolkit for LabVIEW.  I don't think it is a free download however.  With the Data Manipulation toolkit, you can integrate with most databases that use the ODBC protocol.
    If you don;t need anything fancy, you can write the values out to file using the write/read spreadsheet VIs.  If the file is [COMMA] or [TAB] delimited, you can import it into your database with ease.
    Another approach is to format you output to a text file as SQL, and import the records that way.
    INSERT INTO TEMP_HUM_TBL (Temperature, Humidity, Txn_Date)
    VALUES (30, 95, 'Dec-24-2013');
    Machine Vision, Robotics, Embedded Systems, Surveillance
    www.movimed.com - Custom Imaging Solutions

  • C# load xml data with attributes to datagridview; update data and save back to the xml

    Hi guys,
    i currently have this XML as data
    <DEALS>
    <DEAL ID="22" ISBN="0-7888-1623-3" Screenplay="Mary Kaplan" Title ="Mr Gentleman" Director = "Jonathan Jones">
    <ALLOCATION DEMANDE="5000" CODE="72" PRICE="25.00">2500</ALLOCATION>
    <ALLOCATION DEMANDE="7000" CODE="75" PRICE="35.00">4000</ALLOCATION>
    </DEAL>
    <DEAL ID="23" ISBN="1-7988-1623-3" Screenplay="Joe Doe" Title ="Nothing Much" Director = "Listentome">
    <ALLOCATION DEMANDE="3300" CODE="72" PRICE="15.00">2500</ALLOCATION>
    </DEAL>
    </DEALS>
    I load the data with the code below:
    i use xDocument to load the DealData.xml and then put it in ToString.
    //outside of the form
    public static class XElementExtensions
    public static DataTable ToDataTable(this XElement element)
    DataSet ds = new DataSet();
    string rawXml = element.ToString();
    ds.ReadXml(new StringReader(rawXml));
    return ds.Tables[0];
    public static DataTable ToDataTable(this IEnumerable<XElement> elements)
    return ToDataTable(new XElement("Root", elements));
    //in the form
    private void button2_Click(object sender, EventArgs e)
    var xDocument = XDocument.Load("DealData.xml");
    string txtxml = xDocument.ToString();
    StringReader reader = new StringReader(txtxml);
    XDocument doc1 = XDocument.Load(reader);
    var res = doc1.Descendants("DEAL").ToList().Where(x => x.Attribute("ID").Value == "22").Descendants("ALLOCATION");
    dataGridView1.DataSource = res.ToDataTable();
    Now my question is:
    I would like to update the data from the DataGridview with the Attribute("ID").Value == "22" and save the data back to the XML.
    For example, after I load my data on the datagridview, we only pickup anything that is in the node
    <DEAL ID="22" ISBN="0-7888-1623-3" Screenplay="Mary Kaplan" Title ="Mr Gentleman" Director = "Jonathan Jones">
    <ALLOCATION DEMANDE="5000" CODE="72" PRICE="25.00">2500</ALLOCATION>
    <ALLOCATION DEMANDE="7000" CODE="75" PRICE="35.00">4000</ALLOCATION>
    </DEAL>
    I updated the datagridview below with DEMANDE = 9000 CODE = 66 PRICE = 24.77 AND ALLOCATION = 1200
    I want be able to extract the data back in the xml as a child of the DEAL ID = "22"
    So that the XML file looks like this 
    <DEALS>
    <DEAL ID="22" ISBN="0-7888-1623-3" Screenplay="Mary Kaplan" Title ="Mr Gentleman" Director = "Jonathan Jones">
    <ALLOCATION DEMANDE="5000" CODE="72" PRICE="25.00">2500</ALLOCATION>
    <ALLOCATION DEMANDE="7000" CODE="75" PRICE="35.00">4000</ALLOCATION>
    <ALLOCATION DEMANDE="9000" CODE="66" PRICE="24.77">1200</ALLOCATION> <-! this is the new line !->
    </DEAL>
    <DEAL ID="23" ISBN="1-7988-1623-3" Screenplay="Joe Doe" Title ="Nothing Much" Director = "Listentome">
    <ALLOCATION DEMANDE="3300" CODE="72" PRICE="15.00">2500</ALLOCATION>
    </DEAL>
    </DEALS>
    Is there a way to achieve that?
    I have been searching and reading in the books but i cannot find a solution for this.
    Thank you
    Please do not forget to click “Vote as Helpful” if the reply helps/directs you toward your solution and or "Mark as Answer" if it solves your question. This will help to contribute to the forum.

    I would think of something like the below, the id is passed as static you need to change this
    protected virtual void button1_Click(object sender, EventArgs e)
    //Get DataTable from DGV datasource
    DataTable dt = new DataTable();
    dt = (DataTable)dataGridView1.DataSource;
    string file1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?><DEALS><DEAL ID=\"22\" ISBN=\"0-7888-1623-3\" Screenplay=\"Mary Kaplan\" Title =\"Mr Gentleman\" Director = \"Jonathan Jones\"><ALLOCATION DEMANDE=\"5000\" CODE=\"72\" PRICE=\"25.00\">2500</ALLOCATION><ALLOCATION DEMANDE=\"7000\" CODE=\"75\" PRICE=\"35.00\">4000</ALLOCATION></DEAL><DEAL ID=\"23\" ISBN=\"1-7988-1623-3\" Screenplay=\"Joe Doe\" Title =\"Nothing Much\" Director = \"Listentome\"><ALLOCATION DEMANDE=\"3300\" CODE=\"72\" PRICE=\"15.00\">2500</ALLOCATION></DEAL></DEALS>";
    StringReader reader = new StringReader(file1);
    XDocument doc1 = XDocument.Load(reader);
    //Remove all elements related to the id being populated into the Grid
    doc1.Descendants("DEAL").ToList().Where(x => x.Attribute("ID").Value == "22").Descendants("ALLOCATION").Remove();
    //loop through datatable and create new xelement to be added to the xdocument
    foreach (DataRow dr in dt.Rows)
    XElement xe = new XElement("ALLOCATION",
    new XAttribute("DEMANDE", dr[0].ToString()),
    new XAttribute("CODE", dr[1].ToString()),
    new XAttribute("PRICE", dr[2].ToString()));
    xe.Value = dr[3].ToString();
    doc1.Descendants("DEAL").ToList().Where(x => x.Attribute("ID").Value == "22").FirstOrDefault().Add(xe);
    Fouad Roumieh

  • Error during the save process with Planning data form

    Hi,
    When in Planning web-client, I am trying to make changes to data on a data form. The cells are level-0 members (Yellow and writeable in a bottom-up Working version). When I save, it takes a while to process the request, then gives me the following error message: "There was an error during the save process."
    The data form is fairly large, could this be causing the problem? I am a able to save data on other forms that correspond to the exact same set of members and dimensions with no problem. What are possible causes of this error? I have tried stopping and starting planning and the entire EPM system. Thank you.

    Hi,
    I believe you are using V11, I would stop planning, clear out log \Hyperion\logs\services\HyS9Planning-sysout.log, start planning, replicate the error and then going in look if the log has any more detailed information.
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for

  • Iphone 4 update problem (in itunes)

    When I connect to itunes and hit update it says "The iphone software update server could not be contacted" I haven't updated in forever any ideas why i'm getting this?

  • Problem with image file (URGENT!!!!!!!!!!)

    Hi all, I'm using oracle 6i and in my program I use an activeX for generating barcodes.. the activeX genrate an image file and i need to store it in db(oracle 9i) or at least show the generated image through my form...the problem I encounter is that

  • BT Home Problem - High Latency

    I have been having some problems ever since i switched to BT really. I was previously with VirginMedia but left due to their abysmal services... The broadband, however, was faultless. But now, with BT i'm having a problem playing online games. I star

  • The Recommended pages for updating software for my mac are no longer maintained by Apple. Any thoughts?

    Although in my System information it lists my Mac as running OS X 10.9.5, it was not the case. My system was running browsers in an older version. When I asked for support, I was pointed to Recommended Articles about updating and installing software

  • Output type - Print preview Commodity code

    Hi All, I have created an F8 billing document and I can see the commodity code in the foreign trade tab. Is there standard output type which I can use to view the invoice and see if the commodity code is getting printed? Any ideas? Regards, Meghna