How to get status of

I'm using a table linked with a CachedRowSetDatasetProvider
and I have to implement the following rule :
"the column can be edited only if the row is being appended,
else it will be display only"
I want to dynamicaly change the representation of a column as follow
- a staticText if the row is already commited in the database
- a textfield if the row is just being appended
Is there a way to know the status of the row
In the past, the good old PowerBuilder provided a similar method to get the status of row inside a datawindow, the returned possible values were :
New!, DataModified!, Deleted! ...
Thanks a lot

Hi There,
Making the Table row editable only for the appended row is tricky!
The simplest solution I can think of is to display the read only rows in a table , and have seperate fields to enter the appeneded rows!
but take a look at this tutorial
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/inserts_updates_deletes.html
Its hows you how to add,update, delete rows displayed from the database.
Hope it helps, sorry for delayed response.
K

Similar Messages

  • How to get status of transaction

    Hi Gurus,
    can anyone tell me how to get status of the transaction in crm.
    regards,

    hi vijay,
    what kind of transaction did you want to get the status ?
    for order, complaint, activity, and task, you can used function modul 'CRM_ORDER_READ' for getting status of the document.
    hopes it helps
    cheers

  • CRM document - how to get status duration?

    Dear all,
    I extract data CRM -> BI  using standard datasources: 0CRM_SRV_PROCESS_H, 0CRM_COMPLAINTS_I, etc
    I need build a report with status duration of documents
    For example, if document was processed 4 days in statuses OPEN > IN PROCESS > VALIDATION > CLOSED report should be following:
    OPEN - 1 day
    IN PROCESS - 2 days
    VALIDATION - 1 day
    Each CRM datasource has start date and last change date of the document
    But there is no fields which stores date or duration of intermediate status change
    Could you please give an advice - how to get status duration?
    Thanks in advance

    Hi Oleg,
    Please check whether following standard datasources could meet your requirements:
    0CRM_TSS_DTRACK  CRM Tracking of Document Processing Lifecycles
    0CRM_TSS_PKYF       Timestamp Service: Performance Key Figures
    You can find the documents in transaction code SBIW, through IMG path
       Settings for Application-Specific DataSources (CRM)
           -> Settings for Extracting CRM Objects
                 ->  Define Extraction to Track the Document Processing Life Cycle   
                  -> Define Performance Key Figures for Time Stamp Service Analysis
    Best Regards,
    York

  • How to get status codes of field?

    For every document type or status field which we can see on front end, there is code which is finally stored in table.
    e:g: Go to transaction /nme53n
            Select any purchase req.
            Select status tab from item.
            See – processing status field.
            These processing status saves as N,B, etc in table.
    I know there is way to see these codes followed by full description on front end screen itself. I think using personal settings, but dont know how to set this. Please let me know how to see status codes + description on front end.

    You gui status should be implemented in the main screen which the subscreen resides, all function codes should be handled at that level. I believe you will need to set the F2 funciton code in your gui status, set the function code to PICK and then handle this function code in your PAI user command module. Should work.
    subscreen cannothave their own pf-status.....so create a pf-status for a screen in which ur subscreen is called...include 'pick' or f2 as onre of the functions code for the choose option.
    to differentiate the field u have to use get cursor field fldname.
    if it is a table control field u have to use
    get cursor field <fldaname> line <n> value <fval>

  • How to get status profile (STSMA) in user exit ILOM0001

    Hi ABAPers,
    I am currently working on user exit ILOM0001 (Check before saving a functional location) and need to get information about status profile (STSMA). I have checked parameters that is imported into this user exit (DATA_IFLO, DATA_IFLO_OLD, DATA_IFLOS) and none of them have STSMA.
    Could anybody help me how to get this field STSMA into user exit ILOM0001?
    Appreciate it.
    Thanks
    Regards
    Hadi

    Dear Kolla,
    Really appreciate your answer, but
    I don't want to generate or make settlement receiver.
    I was building a script in user exit IW010009,
    And the issue is I can not capture the content of field settlement receiver.
    If we want to capture screen field, ex. equnr, we can use structure CAUFVD,
    when i see the technical detail in this field, the structure for settlement is DKOBR, field EMPGE, but i cannot call it on debug.
    Kindly need your help on this issue.

  • How to get status of a backup job

    Hello everybody,
    I scheduled our daily RMAN backup using the DBMS_SCHEDULER package. The DB job calls an external batch file which in turns calls rman's executable and passes it a command file containing the actual backup script. Similar to what's described here:
    Problems with automated RMAN Backup in Oracle 11GR1 with DBMS_SCHEDULER
    The backup works perfectly. The problem is that if I intentially corrupt the command file (simulating a backup failure) so that the backup fails, and then query the dba_scheduler_job_log view, I always get a status of SUCCEEDED. Regardless of the actual backup outcome, the job seems to always succeed. That's a problem for me, because I'd like to set up a user defined metric which would check the status of the job in dba_scheduler_job_log. If the job wasn't successfully executed, a mail would be sent.
    Does anybody know why the job doesn't fail when it should? I also tried to execute the failing script manually and then checked the %ERRORLEVEL% environment variable. It has a value of 1, meaning error.
    Btw, I know that if I schedule the same backup with Enterprise Manager's job system (instead of DBMS_SCHEDULER), the backup failure is correctly reported (and the metric works). The issue with EM is its limited scheduling capability - I do a full backup on Sunday, a cummulative incremental backup on Wednesday and all the other days a differential incremental backup. Since now I haven't found a way to define a schedule with an appropriate repeating interval. The only solution I figured out is to have 7 jobs, one for each day of the week....
    Thanks in advance for any answers,
    Jure

    Hi,
    @alanm: I completely forgot checking that view :-) Using it is a solution, but I should probably set up a job chain to handle that (run backup & chack status in the view afterwards)....if there isn't be another solution, maye I'll do that. But then, maybe using 7 EM jobs is a simpler solution.
    @RnR: I tried to execute the batch file manually from the command line like that:
    C:\>echo %errorlevel%
    0
    C:\>rman target / cmdfile=backup_full.rcv
    Recovery Manager: Release 10.2.0.3.0 - Production on Sre Jul 2 09:46:37 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: TESTDB (DBID=2890535676)
    RMAN> RUN
    2> {
    3> aa;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "identifier": expecting one of: "allocate, alter, backup, beginline,
    blockrecover, catalog, change, copy, convert, crosscheck, configure, duplicate, debug, delete, exec
    ute, endinline, flashback, host, mount, open, plsql, recover, release, replicate, report, restore, r
    esync, set, setlimit, sql, switch, startup, shutdown, send, show, transport, validate"
    RMAN-01008: the bad identifier was: aa
    RMAN-01007: at line 3 column 1 file: backup_full.rcv
    C:\>echo %errorlevel%
    1
    So the if the script fails, I get an errorlevel of 1. Is it possible that the status isn't propagated back to the Oracle job?
    @alanm: I'm already appending to the log, but I don't see how can that affect the outcome status of the job?
    Thanks for your answers.
    Regards,
    Jure

  • How to get Status of Static Root of Trust in windows

    While implementing the static root of trust in windows system, how one can get the status of static root of trust??
    How one can do measurement of static root of trust in the system.

    Might also try them here.
    http://social.technet.microsoft.com/Forums/en-US/home?forum=mdopagpm%2Cmdopmbam&filter=alltypes&sort=lastpostdesc
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • How to get status of an rs232 connection

    Hi,
    I am trying to read out the status of on RS232 connection.
    How can I do this?
    Moreover would it be great to make the handshake visible! Is there a way that I can do that?
    I would like to make a program something like where I can push a button "connect", get the status that i am connected and then make it possible to send some data....
    I would really thank you if you can help me.
    Sincerely Tim

    The more fundamental problem is that except for an indication of whether or not it has been initialized and perhaps the number of bytes in the port buffer, a serial port doesn't have any sort of real status. RS232 communications simply isn't that sophisticated. For what it's worth, unless the device you are working with is very old, monitoring the handshake lines probibly won't tell you anything because most modern serial device don't use any handshaking.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to get status of a ScheduledTask

    <p>When someone cancels a running schedule manually from the GUI,that schedule is not listed by using the listJobStatus of theScheduler class.  Even in some cases a failed schedule doesn'tappear in in the list of ExecutionStatus that we get by using thelistJobStatus of the Scheduler class. How do I get the status ofScheduledTask in those cases. There is this getLastStatus method incom.sqribe.transformer.scheduling.ScheduledTask but that is hiddenby the api and I cannot use it.</p><p> </p><p>I need to get the status of a schedule that has started running,  to find out if it has suddenly stopped. If it comes in thelist given by listJobStatus of the Scheduler class, I can find findout, when it is not listed how do I find the status.</p>

    have a look at the workflow built-in vars:
    WF_ACTION_ERROR and WF_ACTION_RESULT or WF_CASE_RESULT
    WilfredS

  • How to get status of a sub process from the parent process.

    Hi,
    I want to get the status of a subprocess from the parent process (i.e. success or failure).
    How can I get this.
    Thanks in advance.
    Bye

    have a look at the workflow built-in vars:
    WF_ACTION_ERROR and WF_ACTION_RESULT or WF_CASE_RESULT
    WilfredS

  • How to get Status of a given message (ID) from OS level?

    Is there a way to get the status of a given Message id using any command from the OS (UNIX or NT) where the XI is installed?
    We are currently using XI 2.0 on NT.
    Thanks.

    have a look at the workflow built-in vars:
    WF_ACTION_ERROR and WF_ACTION_RESULT or WF_CASE_RESULT
    WilfredS

  • How to get status of windows services

    Hi ,
    can i use java to get the status of services running under windows (the services that we get on running "services.msc" in run). i want to monitor the status of a service.
    Thanks.

    JoachimSauer wrote:
    That's not possible in pure Java, because it's a operating-system dependent operation.
    You'll have to call some OS components somehow. Either execute an external executable using ProcessBuilder or use JNI/JNA to call some native APIs to do that.At this point, though, it's worth asking yourself "Should I even bother writing the front-end in Java?"

  • How to get status of a short lived process?

    I have a short-lived process I call from servlet (submit servlet), I would know when the process has completed, I tried the following code, but it says
    [3/3/09 10:35:37:593 PST] 0000002f SystemErr R Caused by: com.adobe.idp.jobmanager.common.JobNotFoundException
    InvocationResponse invokeResponse = myServiceClient.invoke(invokeRequest);
    String invocationId = invokeResponse.getInvocationId();
    JobManager jobManager = new JobManager(myFactory);
    JobId myJobId = new JobId(invocationId);
    int counter = 0;
    while((jobManager.getStatus(myJobId).getStatusCode() == JobStatus.JOB_STATUS_RUNNING) && ++counter < 60) {
    Thread.sleep(1000);
    Any help would be appreciated. Thanks in advance.

    Nelson
    As Paul has stated, there really isn't a good way to get the "status" of a short-lived process because being able to get such a status goes against what a short-lived process is intended for. Typically a short-lived process would run and promptly return any outputs to you. Personally, I like to distinguish long-lived versus short-lived by associating user steps with long-lived and their absence with short-lived (since short-lived processes can't have any user steps anyway). If you are still wanting to be able to retrieve the status of your process, I might encourage you to make it long-lived instead. This way, the tb_process_instance table can be used to check the process's status via its complete_time column. Alternatively, you could have a status variable in the orchestration itself such as a string you could update whenever you want to update the status. Since all process variables for long-lived processes are stored in the database, you could check this value to see where you're at with the process.
    If you have any questions, please do let me know. You can email me directly or just respond on these forums. Good luck!
    Josh Boyle
    [email protected]
    Cardinal Solutions Group

  • How to get status of a particular sales order Number

    hi can anybody tell me the way which we get the status of various SOrders and it should check some seven conditions and display the status , the following are the statuses to be displayed.
    a.     Mark as “O” (open) =  Get the VBUK-LFSTK where VBAK-VBELN, If VBUK-LFSTK is “A” show the sales order status open
    b.     Mark as “H” (on Hold) = Pull the VBAK-VBELN reference to VBAK-LIFSK.  If the sales order has the delivery block (15 IBM Pending BOP file )
    c.     Mark as “D” (Drop/Pull) = Get the LIKP-VBELN reference to VBAK-VBELN and give the LIKP-VBELN for VBUK- VBELN and if the VBUK- LVSTK is “A” then it is dropped.
    d.     Mark as “N” (pending) = Get LIKP-LIFSK from the LIKP-VBELN where VBAK-VBELN if the status is either “12, 13,14,15,16 and 17”
    e.     Mark as “F” (Floor) = Get the LIKP-VBELN reference to VBAK-VBELN and give the LIKP-VBELN for VBUK- VBELN and if the VBUK- LVSTK is “C” then it is transferred to the floor.
    f.     Mark as “K” (Kitted) = Get the LIKP-VBELN reference to VBAK-VBELN and give the LIKP-VBELN for VBUK- VBELN and if the VBUK- LVSTK is “B” then it is kitted.
    g.     Mark as “P” (packed)= Get LIKP-VBELN reference VBAK-VBELN and give LIKP-VBELN as an input for VBUK- PKSTK and PKSTK is”C” 
    h.     Mark as “G” (PGI) = Get LIKP-VBELN reference VBAK- VBELN and give LIKP-VBELN as an input for VBUK-WBSTK is “C”
    Mark as “E” (EDI Error) in following two scenarios = If VBUK-LFGSK not equal to C for the sales order, then search VBAK-LIFSK then it is an “EDI Error” if values are:  14 or 17. On the other hand, If VBUK-LFGSK is equal C for the sales order, then search the delivery header… LIKP-LIFSK  it is an “EDI Error” if values are:  14 or 17

    Check field VBUK-GBSTK (Overall processing status of document).
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • How to get Status of Archived Delivery Document line item

    Hi Folks,
    I want read the Status of line item of archived delivery document.
    As delivery is archived, it is not found in LIKP/LIPS. So I got the archived delivery document from VBFA table.But this does not contain the status field.
    Is there any program or Function modules which reads this status.
    Please help.
    Thanks in advance.

    Check field VBUK-GBSTK (Overall processing status of document).
    regards,
    srinivas
    <b>*reward for useful answers*</b>

Maybe you are looking for