DataService createItem( ) question

I've been using DataServices to get a collection and then
add, modify and delete items from it, and everytime i do this i get
a refresh for that collection, that way i always have the latest
changes on the items of the collection.
Now i am trying to add a single item, without using a fill
method first, but the thing is that after inserting it to the
database i can't get an update of the item, because i didn't use a
fill method before.
The reason i need this is because the item's ID is not set in
flex, it is set in java (using hibernate) because it is an
autogenerated ID, so on Flex the item's ID is always null whereas
in the database the item is inserted correctly with an
autogenerated key.
The problem like i said is that the object in flex remains
with the null id and i can't find a way to update it automatically,
so i am wondering if there's anyway to do this, that is to insert a
new item using DataService.createItem() and then have an automatic
update so the item on Flex is updated according to the values made
on the database.
Any help would be great, thanks

hello,
i am having the same problem. did you find a soution yet?
greets
robson

Similar Messages

  • Question about DataService and Assembler

    I know that in order to use a DataService you need an
    Assembler and an ActionScript class which is a mirror of the Java
    objects the Assembler will be working with.
    My question is, can the same Assembler work with two or more
    different Java objects??? For example:
    Suppose that you have class A and class B of Java objects,
    the fill method of the Assembler calls a Java method that returns a
    list which contains both, objects of class A and class B. On Flex
    you have also class A and class B, each one refering to its Java
    match.
    Does this work? can the DataService work like this, using two
    or more different kind of objects???

    Yeah i think i am going for option 2, because the list that
    Java returns contains up to 4 different kind of objects (hierarchy)
    so i would need the assembler and dataservice to be able to handle
    4 type of objects at the same time and it seems this is not
    possible.
    I guess the only way to do this is like you said, with one
    generic Java and AS class which contains the data of the other 4
    classes.
    Thanks

  • Call to ALDP 3.2 dataservice using  Mediator API throwing validation error

    Hi,
    Call to ALDP 3.2 dataservice using Mediator API with request doc having xsi:type (eg: <ns1:searchBy xsi:type="ns2:ImplXXXIDType">) is throwing validation saying that it is unable to resolve the namespace ns2 .The namespace ns2 is defined at root level. If the namespace ns2 is defined at the element level like this
    <ns1:searchBy xsi:type="ns2:ImplXXXIDType" xmlns:ns2="http://www.xxx.com/xyz/datastructure/1/"> it is working fine. We never had this issue with ALDSP 2.5 Mediator API.
    Any suggestions or help would be most welcome!
    Thanks,
    Gkumar

    Ok. Now you need to put enough information on the case for someone to investigate. Please attach instructions on how to create a data space that will show this problem. Since customer support will not have your database etc. , if you just create an empty ds function in the same ds as the one that has the problem, like so...
    function dummyFunction() as element(....)* {
    and then replace the () with the output from the Test View so it looks like...
    function dummyFunction() as element(....)* {
    <myElement ....>
    <otherElement ...>
    </myElement>
    Once you have a dummy function like that which demonstrates the problem, export your dataspace and attach it to the case.
    If you anticipate some of the questions that customer support is going ot ask you (including providing a reproducer), you will save yourself many days (or weeks) of time.

  • Using createItem with Java AbstractAssembler

    I've just started working with flex (and flex data services)
    and have been experimenting with directly calling the createItem
    method (extending AbstractAssembler) as a way of poking data into a
    server-side DB. It's probable I'm just not using the flex
    methodology correctly, but every time I try to run my test case I
    am getting the error detailed below. I'd appreciate any pointers as
    to where I'm going wrong...
    Error in Tomcat log:
    quote:
    Exception in RtmpReader thread:
    flex.messaging.MessageException: Cannot create class of type
    'com.mycompany.learning.User'. Type 'com.mycompany.learning.User'
    not found.
    flex.messaging.MessageException: Cannot create class of type
    'com.mycompany.learning.User'. Type 'com.mycompany.learning.User'
    not found.
    at
    flex.messaging.util.ClassUtil.createClass(ClassUtil.java:57)
    at
    flex.messaging.io.AbstractProxy.createInstance(AbstractProxy.java:83)
    at
    flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:364)
    at
    flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:134)
    at
    flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:116)
    at
    flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:392)
    at
    flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:134)
    at
    flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:116)
    at
    flex.messaging.io.amf.Amf3Input.readArray(Amf3Input.java:323)
    at
    flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:138)
    at
    flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:116)
    at
    flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:392)
    at
    flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:134)
    at
    flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:116)
    at
    flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:125)
    at
    flex.messaging.io.amf.Amf0Input.readObject(Amf0Input.java:85)
    at
    flex.messaging.io.tcchunk.TCCommand.readMessage(TCCommand.java:177)
    at
    flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(AbstractRTMPServer.java: 563)
    at
    flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:665 )
    at
    edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPo olExecutor.java:643)
    at
    edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolEx ecutor.java:668)
    at java.lang.Thread.run(Thread.java:613)
    The client side Actionscript class looks like this:
    quote:
    package com.mycompany.learning
    [RemoteClass(alias="com.mycompany.learning.User")]
    public class User
    public function User() {}
    public var userId:int;
    public var firstname:String;
    public var surname:String;
    public var email:String;
    public var username:String;
    public var password:String;
    It's used in my mxml code as follows:
    quote:
    userDS = new DataService("account");
    user = new User();
    user.firstname = fNameV;
    user.surname = sNameV;
    user.username = userNameV;
    user.password = passwordV;
    user.email = userEmailV;
    var ref:ItemReference = userDS.createItem(user);
    Alert.show(ref.message.toString());
    My destination xml definition looks like this:
    quote:
    <destination id="account">
    <adapter ref="java-dao" />
    <channels>
    <channel ref="my-rtmp"/>
    <channel ref="my-http"/>
    </channels>
    <properties>
    <source>com.mycompany.learning.UserAssembler</source>
    <scope>application</scope>
    <metadata>
    <identity property="userId"/>
    </metadata>
    <network>
    <session-timeout>20</session-timeout>
    <paging enabled="false" pageSize="10" />
    <throttle-inbound policy="ERROR" max-frequency="500"/>
    <throttle-outbound policy="REPLACE"
    max-frequency="500"/>
    </network>
    <item-class>com.mycompany.learning.User</item-class>
    </properties>
    </destination>
    And finally (sorry about the length of this posting) the java
    code for the Assembler and server-side User object looks like this:
    quote:
    package com.mycompany.learning;
    public class User
    private int userId;
    private String firstname;
    private String surname;
    private String email;
    private String username;
    private String password;
    public String getFirstname()
    return firstname;
    ...etc...
    quote:
    package com.mycompany.learning;
    import java.util.*;
    import flex.data.ChangeObject;
    import flex.data.DataSyncException;
    import flex.data.assemblers.AbstractAssembler;
    public class UserAssembler extends AbstractAssembler
    public List loadUsers()
    UserDAO dao = new UserDAO();
    return dao.getUsers();
    public Object getItem(Map uid)
    UserDAO dao = new UserDAO();
    return dao.getUser(((Integer)
    uid.get("userId")).intValue());
    public void createItem(Object item)
    System.out.println("HELLO!");
    UserDAO dao = new UserDAO();
    dao.create((User)item);
    (I haven't seen the HELLO println call ever made.)

    Mark, according to your J2EE server, you could also change
    your WAR classloader policy.
    For instance on WebSphere (I use both 5.1 and 6.0 releases
    here), I have a Module (default) and an Application scope. So,
    either I drop all my JAR libraries (FDS and Java Flex application
    classes) under the WEB-INF/lib directory, or I change the scope to
    Application, without moving any JARs.
    Partitioning is "more open" when you choose the Application
    mode (which could be a problem under some circumstances, but that's
    another topic).
    Regards --

  • Consuming dataservice as a stand alone java client, givng an exception com

    when i am trying to access data service from a stand alone java application ,it giving an exception .
    The dataservice is in remote machine.
    Exception:
    com.bea.dsp.dsmediator.client.exception.SDOMediatorException: weblogic.rjvm.PeerGoneException: ; nested exception is:
         java.io.EOFException
         at com.bea.dsp.dsmediator.client.XmlDataServiceBase.invokeFunction(XmlDataServiceBase.java:322)
         at empldetappdataservices.EmployeeDetails.getEmployeesByid(EmployeeDetails.java:84)
         at com.patni.tsg.poc.DataServiceClient.DataServiceClient.main(DataServiceClient.java:42)
    Caused by: weblogic.rjvm.PeerGoneException: ; nested exception is:
         java.io.EOFException
         at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:290)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:248)
         at com.bea.ld.Server_ydm4ie_EOImpl_815_WLStub.executeFunction(Unknown Source)
         at com.bea.dsp.dsmediator.client.XmlDataServiceBase.invokeFunction(XmlDataServiceBase.java:312)
         ... 2 more
    Caused by: java.io.EOFException
         at weblogic.rjvm.t3.T3JVMConnection.endOfStream(T3JVMConnection.java:897)
         at weblogic.socket.SocketMuxer.deliverExceptionAndCleanup(SocketMuxer.java:586)
         at weblogic.socket.SocketMuxer.deliverEndOfStream(SocketMuxer.java:536)
         at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:694)
         at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:641)
         at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:282)
         at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    my class path i added all neccessary jars:
    weblogic.jar,xbean.jar,DataServices.jar,ld-server-core.jar,ld-client.jar,wlsdo.jar
    code sample:
    public static InitialContext getInitialContext() throws NamingException {
    Environment env = new Environment();
    env.setProviderUrl("t3://pc-p40892:7001");
    env.setInitialContextFactory("weblogic.jndi.WLInitialContextFactory");
    env.setSecurityPrincipal("weblogic");
    env.setSecurityCredentials("weblogic");
    return new InitialContext(env.getInitialContext().getEnvironment());
    public static void main (String args[]) {
    try {
    EmployeeDetailsDocument.EmployeeDetails edet=null;
    EmployeeDetails ds=EmployeeDetails.getInstance(getInitialContext(),"EmplDetApp");
    //The below statement generating the exception.
    EmployeeDetailsDocument[]doc =ds.getEmployeesByid("1001");
    } catch (Exception e) {
    e.printStackTrace();
    pls help me to solve this problem
    Edited by sandeepc221 at 09/19/2007 2:50 AM

    You didn't post the stack trace from the server, but I'm guessing it's complaining about the QName class. Sun changed the QName class in JDK 1.5 wreaking havoc on JDK 1.5 clients that use JDK 1.4 servers and attempt to pass a QName object from one to the other. If your client uses JDK 1.5, your sever will need to use a QName class which is compatible. The file liquiddata/lib/wls90interop.jar contains a QName class that is compatible with the one in JDK1.5. You can put it first in the classpath of your server.
    If you already have wls90interop.jar first in the classpath of your server, then, for your client, you need to either (1) use the Sun JDK 1.5; or (2) put wls90interop.jar first in the classpath of your client (if you are running JDK 1.4).
    http://e-docs.bea.com/aldsp/docs25/appdev/ejbclt.html#wp1090900
    btw - BEA Customer Support is available 24/7 - they should be able to provide you quick answers to questions like this.

  • Flex Dataservices Deployment Problem

    I´m using dataservices to connect to my database via php. This works  fine so far.
    The problems begin when I want to deploy the app, because I had to make  some changes to my model .fml file.
    Here is an excerpt:
    <annotation name="ServiceConfig">
    <item  name="PHP_RELATIVE_LOCATION">MyApp/application/amf/Navigation.php</item>
    <item name="PHP_SERVER_ROOT">C:/xampp/htdocs</item>
    <item name="DEFAULT_ENTITY_PACKAGE">valueObjects</item>
    <item  name="PHP_SERVICES_FOLDER">C:/xampp/htdocs/MyApp/public/flash/services</item>
    <item  name="PHP_LOCATION">C:/xampp/htdocs/MyApp/application/amf/Navigation.php</item>
    <item name="LINKED_FILE">Navigation.php</item>
    <item name="PHP_SERVER_ROOT_URL">http://localhost/</item>
    <item name="ABSOLUTE_ENDPOINT">http://localhost/MyApp/public/amf</item>
    <item name="PHP_CLASS_NAME">AMF_Navigation</item>
    </annotation>
    As you can see I intergrated my amf endpoint into my zend project,  there´s no gateway.php, and furthermore
    integrated the php classes used to "talk to the database". I had to do  this in order to make the whole thing run
    with zend session and doctrine as an ORM layer.
    As I now have paths and values specific for my development environment  the next question is, can I somehow
    use another .fml file for my release build to run in my production  environment? Of course I could edit the .fml file
    every time for the release build, but that would really be a pain... and  also I just can´t believe that Adobe didn´t
    anticipate a scenario like this and has some kind of solution.

    I found the answer myself.
    I had a look at the files generated out of the .fml file, i.e. _Super_MyApp.as and there it said under _serviceControl.endpoint "http://localhost/and so on" where in default configurations there would be "gateway.php" only. As I integrated the gateway.php into my Zend Controllers .i.e. AmfController.php I had to put <item name="Endpoint">../amf</item> in my .fml file. Now it seems to work.
    However I still wonder what this does...
    <annotation name="ServiceConfig">
    <item   name="PHP_RELATIVE_LOCATION">MyApp/application/amf/Navigation.php</item>
    <item name="PHP_SERVER_ROOT">C:/xampp/htdocs</item>
    <item  name="DEFAULT_ENTITY_PACKAGE">valueObjects</item>
    <item    name="PHP_SERVICES_FOLDER">C:/xampp/htdocs/MyApp/public/flash/services</item>
    <item   name="PHP_LOCATION">C:/xampp/htdocs/MyApp/application/amf/Navigation.php</item>
    <item name="LINKED_FILE">Navigation.php</item>
    <item  name="PHP_SERVER_ROOT_URL">http://localhost/</item>
    <item  name="ABSOLUTE_ENDPOINT">http://localhost/MyApp/public/amf</item>
    <item name="PHP_CLASS_NAME">AMF_Navigation</item>
    </annotation>
    ... urls and paths are obviously wrong here but that doesn´t seem to be a problem when exported. I guess this is only for introspection of the services in flashbuilder, right? Or am I going to run into more problems?

  • 'Null' being added to ArrayCollection during add/update by Dataservice

    Environment:
    Tomcat 6.0
    Livecycle 3.1
    Flex SDK 3.5
    We have a data service destination setup like this:
         <destination id="Trades" adapter="java">
            <properties>
                <factory>spring</factory>
                <source>lcdsTradeBlotterAssembler</source>
                <scope>application</scope>
                <item-class>com.domain.Trade</item-class>
                <use-transactions>false</use-transactions>
                <auto-sync-enabled>true</auto-sync-enabled>
                <cache-items>true</cache-items>
                <metadata>
                    <identity property="uid" type="java.lang.String" />
                </metadata>
                <network>
                    <throttle-inbound policy="IGNORE" max-frequency="500" />
                </network>
            </properties>
        </destination>
    We implement a custom assembler by extending the AbstractAssembler.
         The fill and refreshFill methods are implemented.
    Updates are pushed to the client using a DataServiceTransaction:
         DataServiceTransaction transaction = DataServiceTransaction.getCurrentDataServiceTransaction();
         transaction.createItem(DESTINATION, trade);
         transaction.commit();
    After we create items and push them from the server, the refresh method on the Assmbler gets called. We return 'APPEND_TO_FILL'.
    The item shows up in the client side managed ArrayCollection. This ArrayCollection is bound to a datagrid.
    Problem description:
    The above works fine when we run the server and the client locally on the same machine. When the application is hosted on a another part of the network - we see that for some of the updates - a null gets added to the ArrayCollection, instead of the object pushed from the server. We found this by attaching a CollectionChange event listener to the managed ArrayCollection. This causes blank rows to show up in the Blotter. In some cases we have also seen duplicate rows.
    We see that the object is delivered to the client but not applied to the ArrayCollection properly. I attached a screen shot of the client side stack where we loose the update.
    Calling the refresh() method on the ArrayCollection after the update, fixes the situation. The nulls disappear and the ArrayCollection now has the right data !
    Things tried so far:
    Throttling the DataService update rate - down to 1 update/sec
    Enabling reliable delivery on the Dataservice destination
    Handling conflicts - none detected. Client never updated data.
    Setting DataService.resetCollectionOnFill property to true
    Any pointers would be very helpful

    Thanks.
    We traced this down to the fact that we have multiple threads reading off a JMS queue and pushing the add/update to the client via LCDS.
    Each thread has its own instance of DataServiceTransaction - so this should be ok.
    Following up with support.

  • How to implement Dynamic SQL in DataService ??

    Hi,
    Is there any way in ALDSP to implement Dynamic SQL in Dataservice ?
    My scenario is "based on set of optional fields i need to join different tables.If the optional field is not there then i don't have to join with the corresponding table."
    Thanks

    Ah yes, I thought that looked familiar. It's same question from July 12.
    There is no way to generate Dynamic SQL in DSP XQuery. There is one query plan for each query. The query plan does not change based on the inputs.
    Using a FilterXQuery on top of a query actually generates a new query. You can play with that if you like, but it is not particularly suited to changing joins. Go with the ad hoc query.

  • Powershell In SQL Job Agent Question

    I have absolutely NO IDEA where to ask this question since there doesn't seem to be a Powershell forum which I can easily find. Just getting signed into the MSDN forum was a painful experience with all of the "verify your account" questions which
    is ridiculous.
    I never use Powershell and i'm creating a job where i'm trying to call an .exe file to download data to a CSV file.  The .exe program requires two date parameters - one for today's date and the other for yesterday's date.  I need the dates to be
    in the following format:
    20141110000000 (YYYYHHDDHHMMSS)
    I have absolutely no idea how to pass these parameters to the .exe file via Powershell.  I've looked at several examples and not understanding how to pass this correctly, this is what i'm using currently:
    Invoke-Item Z:\DataServices\Five9\five9\bin\Release\five9.exe Get-Date -format yyyyMMddHHmmss Get-Date.AddDay(-1) -format yyyyMMddHHmmss
    Obviously the above doesn't work and i'm just wasting time - can someone help?
    Thanks!

    Hi Avenuestuart,
    I‘m writing to check if the suggestions were helpful, if you have any questions, please feel free to let me know.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna
    TechNet Community Support

  • DataServices Global Address Cleansing code 3010

    Hello,
    During the address cleansing  we're getting "3010 . Locality, region, and postcode are valid. Unable to match primary name to directory." I don't understand what this means, since the address is valid.
    Appreciate your insight
    Cheers
    PS: Is this the right forum to post a DataServices question?
    Tansu

    Hi Tansu,
    Please check this KB Article[1589996|https://service.sap.com/sap/support/notes/1589996].
    Let me know if it helps.
    Thanks,
    George
    Edited by: George Ruan on Oct 6, 2011 2:34 AM

  • 4 Basic Random HANA Questions

    First, I would like to apologise if my questions sound too basic, I'm still new and trying to understand HANA.
    1) HANA database will be physically located in memory, or I guess we can say CPU.  When I think of database I always think server. Can it be called HANA server?
    2) Can reporting be done in HANA? Does HANA provide a tool within it's application that can do reporting? Or is another reporting tool needed like BWA, BO, BI, etc? If so, which are compatible with HANA?
    3) Architecture Question:
    a) When data is submitted in R/3 (ex. sales order), the data is stored on R/3 server, then replicated in near real time via Sybase to HANA database? Is this how it works?
    b) Why is Sybase a server, Is the data being replicated stored on Sybase server first before being transferred to HANA database? If so, there are 2 servers (R/3 & Sybase) and 1 Memory (HANA)?
    4) Inside In-Memory Computing Studio, Modeling is where the tables are chosen to be replicated. If I chose table XYZ to be replicated in SAP HANA, will the replication automatically create a copy of the table in SAP HANA?
    5) Is there a need to learn any ABAP/4 to be involved in HANA? Can I be an expert in HANA without knowing ABAP/4?
    Thanks in advance, and again I apologies for my noobish questions.

    Here are random answers:
    1) Yes, there is HANA server (hardware machine(s)) and HANA database server (software). HANA server has RAM (lots of it), SSDs and traditional HDD storage. HANA db uses all of those, including CPU cache of course.
    2) You can report using SBO BI or MS Excel (please see earlier thread on this forum). You can use HANA studio for preview of tables/views content, but it isnot reporting tool per se.
    3) Data can be replicated using SAL LT Replicator (ABAP-based), SBO DataServices and in some cases using Sybase Replication Server. Please have a look at recently recorded webinar at http://www.sdn.sap.com/irj/scn/khnc
    4) That's the idea. Details depend on the replication mechanism chosen.
    5) No, but it does not hurt to know ABAP. You would need to learn HANA-specific language called "SQLScript" if you go deep into HANA-based development.
    Regards,
    -Vitaliy
    Edited by: Vitaliy Rudnytskiy on Aug 15, 2011 12:10 AM

  • Help with DataServices and Transactions

    I am using DataServices components and i am getting some
    funny behaviors, i have read the documentantion but i have a
    question:
    1. - How do i do to call an Assembler from another Assembler?
    I read that there is this DataServiceTransaction API but it says
    that you need your DataServices to be auto-sync = false, is this
    true? I mean, do i really need the auto-sync to be false to make
    the DataServiceTransaction work?
    Can anyone please explain it to me?

    The main aim of Recurring entry is post accruals (means periodically, reverse in the next moth,post the same amount). Also there is Manual accrual-here you can put your own logic for amount calculation, periodically posting more flexible, reverse could be turn over to delta logic.
    But in manual accrual you can achieve 'approval' scheme (create Accrual object on basis on approved PO).
    Or you can build this process via park document(with approval)

  • Flex+dataservice+Hibernate

    i got this error when i try to add a second item using
    dataservice and
    hibernate.
    [RPC Fault faultString="Item with id 'markingHibernate:::0'
    already
    exists. Error on destination 'markingHibernate'"
    faultCode="Local.Call.Failed" faultDetail="null"]
    here is my code :
    public function markOffer(offreId:int,userId:int):void{
    var param:Array = new Array();
    param.push(offreId);
    param.push(userId);
    //resCheck.addEventListener(CollectionEvent.COLLECTION_CHANGE,checkMarking);
    var token:AsyncToken =
    markingHibernateService.fill(resCheck,"flex:hql","from Marking m
    where m.offre = ? and m.users = ?",param);
    token.action = "mark";
    token.taille = resCheck.length;
    public function checkMarking(event:CollectionEvent):void{
    taille = event.target.length;
    private function resultHandler(event:ResultEvent):void{
    if(event.token.action == "mark"){
    if(event.token.taille != 0){
    Alert.show("you already marked this offer , plz choose
    another one","Info");
    }else{
    var myMarking:Marking = new Marking();
    myMarking.users = usertest;
    myMarking.offre = dgOfferRes.selectedItem as Offre;
    myMarking.marked = "y";
    myMarking.reserved = "";
    markingHibernateService.createItem(myMarking);
    Alert.show("success marking","Info");
    i hope u can help me.

    Well,
    No Hibernate itself is not built-in in FDS, though there is
    HibernateAssembler which manages everything between hibernate
    resources & fds.
    We have to place hibernate resources(all required files) in
    library.
    Best thing to learn & develop application using
    hibernate/fds is:
    http://blogs.adobe.com/mtg/2006/08/my_first_hibernate_enabled_fle.html

  • Vbscript for sending output of question by emails

    Hi,
    I need a script that will have several questions , and i want to take the answers and send it by email(using outlook software) in the body and not with file attached .
    I got a script to the questions and answers , and i have the script of sending an email with outlook , i just dont know how to link the output to the body.
    here are the example i own (suggestions and adjustments will be welcomed):
    script for the mail :
       Set objOutlook = CreateObject("Outlook.Application")
       Set objMail = objOutlook.CreateItem(0)
       objMail.Display   'To display message
       objMail.Recipients.Add ("*****@****.**.**")
       objMail.Subject = "Mail Subject"
       objMail.Body = "This is Email Body"
       objMail.Send
       Set objMail = Nothing
       Set objOutlook = Nothing
    script 1 for q/a :
    Const ForReading = 1, ForWriting = 2, ForAppending = 8, CreateIfNeeded = true
    set fso = CreateObject("Scripting.FileSystemObject")
    set file = fso.OpenTextFile("output.txt", ForAppending, CreateIfNeeded)
    dim fname
    fname = inputbox("Hi! What's your name?")
    dim fname2
    fname2 = inputbox("And what is your job ?")
    file.write fname
    file.write fname2
    file.close
    script2 for q/a :
      ' Input Box with a Title
      a=InputBox("question1","Enter Value")
      msgbox a
      ' Input Box with a Title
      a=InputBox("question2","Enter Value")
      msgbox a
      ' Input Box with a Title
      a=InputBox("question3","Enter Value")
      msgbox a
      ' Input Box with a Title
      a=InputBox("question4","Enter Value")
      msgbox a
      ' Input Box with a Title
      a=InputBox("question?","Enter Value")
      msgbox a

    Here you go:
    'Input Box with a Title
    sText = InputBox("question1","Enter Value") & vbCrLf
    'Input Box with a Title
    sText = sText & InputBox("question2","Enter Value") & vbCrLf
    etc.
    Now put your E-Mail code here, including this line:
    objMail.Body = sText

  • Questions on Print Quote report

    Hi,
    I'm fairly new to Oracle Quoting and trying to get familiar with it. I have a few questions and would appreciate if anyone answers them
    1) We have a requirement to customize the Print Quote report. I searched these forums and found that this report can be defined either as a XML Publisher report or an Oracle Reports report depending on a profile option. Can you please let me know what the name of the profile option is?
    2) When I select the 'Print Quote' option from the Actions drop down in the quoting page and click Submit I get the report printed and see the following URL in my browser.
    http://<host>:<port>/dev60cgi/rwcgi60?PROJ03_APPS+report=/proj3/app/appltop/aso/11.5.0/reports/US/ASOPQTEL.rdf+DESTYPE=CACHE+P_TCK_ID=23731428+P_EXECUTABLE=N+P_SHOW_CHARGES=N+P_SHOW_CATG_TOT=N+P_SHOW_PRICE_ADJ=Y+P_SESSION_ID=c-RAuP8LOvdnv30grRzKqUQs:S+P_SHOW_HDR_ATTACH=N+P_SHOW_LINE_ATTACH=N+P_SHOW_HDR_SALESUPP=N+P_SHOW_LN_SALESUPP=N+TOLERANCE=0+DESFORMAT=RTF+DESNAME=Quote.rtf
    Does it mean that the profile in our case is set to call the rdf since it has reference to ASOPQTEL.rdf in the above url?
    3) When you click on submit button do we have something like this in the jsp code: On click call ASOPQTEL.rdf. Is the report called using a concurrent program? I want to know how the report is getting invoked?
    4) If we want to customize the jsp pages can you please let me know the steps involved in making the customizations and testing them.
    Thanks and Appreciate your patience
    -PC

    1) We have a requirement to customize the Print Quote report. I searched these forums and found that this report can be defined either as a XML Publisher report or an Oracle Reports report depending on a profile option. Can you please let me know what the name of the profile option is?
    I think I posted it in one of the threads2) When I select the 'Print Quote' option from the Actions drop down in the quoting page and click Submit I get the report printed and see the following URL in my browser.
    http://<host>:<port>/dev60cgi/rwcgi60?PROJ03_APPS+report=/proj3/app/appltop/aso/11.5.0/reports/US/ASOPQTEL.rdf+DESTYPE=CACHE+P_TCK_ID=23731428+P_EXECUTABLE=N+P_SHOW_CHARGES=N+P_SHOW_CATG_TOT=N+P_SHOW_PRICE_ADJ=Y+P_SESSION_ID=c-RAuP8LOvdnv30grRzKqUQs:S+P_SHOW_HDR_ATTACH=N+P_SHOW_LINE_ATTACH=N+P_SHOW_HDR_SALESUPP=N+P_SHOW_LN_SALESUPP=N+TOLERANCE=0+DESFORMAT=RTF+DESNAME=Quote.rtf
    Does it mean that the profile in our case is set to call the rdf since it has reference to ASOPQTEL.rdf in the above url?
    Yes, your understanding is correct.3) When you click on submit button do we have something like this in the jsp code: On click call ASOPQTEL.rdf. Is the report called using a concurrent program? I want to know how the report is getting invoked?
    No, there is no conc program getting called, you can directly call a report in a browser window, Oracle reports server will execute the report and send the HTTP response to the browser.4) If we want to customize the jsp pages can you please let me know the steps involved in making the customizations and testing them.
    This is detailed in many threads.Thanks
    Tapash

Maybe you are looking for