Updating a flag !!

Hi,
I have a file which contains some FLAGS for oracle sid's. , as shown below ,in which I want to modify a FLAG's value through script.
Can anybody help me in writing that command which will do the real updation based on the SID's value.
SID1:Y:Y:N
SID2:N:Y:Y
SID3:Y:Y:Y
Suppose I need to change the value of 3rd FLAG of SID2 to 'N'.

Hi,
You can try to use the following command:
sed '/SID2/s/\(.*\)Y/\1N/'<a.txt >a2.txt
This command script will work against the lines include "SID2".I tested it and works well.we can adjust the command as what you want:).please update this thread if you have any problem.
Regards
Terry

Similar Messages

  • Regarding updating the Flags for tracking history in customer dimension

    Hi Friends,
    I need help,regarding tracking history in dimension tables.Actaully we have customer table and there is id and effective_date/expiration .Previously we were recieving 31/dec/9999 as highend date and I was able to update the active_flag based on this date in the table.Right now we started recieving the different dates
    as 31/dec/2014,31/dec/9999.
    I was using the below query :
    UPDATE MDM_CUSTOMER_MST
    SET ACTIVE_FLAG = 'N',
    DELETE_FLAG = 'Y',
    EFFECTIVE_END_DATE = TRUNC(CURRENT_DATE) -1
    WHERE TRUNC(EXPIRATION_DATE) <>
    (select max(EXPIRATION_DATE)
    FROM MDM_CUSTOMER_MST
    where ACTIVE_FLAG = 'Y'
    AND CUSTOMER_TYPE = 'FACILITY'
    and ACTIVE_FLAG = 'Y'
    and CUSTOMER_TYPE = 'FACILITY'
    AND CUSTOMER_KEY <> '-1'
    it is working only if the highend date is '31-dec-9999' it is not working to track the history if it is '31-dec-2014' .could some one please help me to how to update the flag.

    Hi,
    user9977206 wrote:
    Hi Friends,
    I need help,regarding tracking history in dimension tables.Actaully we have customer table and there is id and effective_date/expiration .Previously we were recieving 31/dec/9999 as highend date and I was able to update the active_flag based on this date in the table.Right now we started recieving the different dates
    as 31/dec/2014,31/dec/9999.
    I was using the below query :
    UPDATE MDM_CUSTOMER_MST
    SET ACTIVE_FLAG = 'N',
    DELETE_FLAG = 'Y',
    EFFECTIVE_END_DATE = TRUNC(CURRENT_DATE) -1
    WHERE TRUNC(EXPIRATION_DATE) <>This site doesn't like to display the &lt;&gt; inequality operator. Always use the other (equivalent) inequality operator, !=, when posting here.
    Did you mean to use TRUNC (expiration_date) above, but expiration_date (without TRUNC) below?
    (select max(EXPIRATION_DATE)
    FROM MDM_CUSTOMER_MST
    where ACTIVE_FLAG = 'Y'
    AND CUSTOMER_TYPE = 'FACILITY'
    and ACTIVE_FLAG = 'Y'
    and CUSTOMER_TYPE = 'FACILITY'
    AND CUSTOMER_KEY <> '-1'Again, it looks like a != sign is missing.
    >
    it is working only if the highend date is '31-dec-9999' it is not working to track the history if it is '31-dec-2014' .could some one please help me to how to update the flag.I'm willing to share what I know about SQL. Are you willing to share what you know about this problem? Post a complete test case that people can run to re-create the problem and test their ideas. Include CREATE TABLE and INSERT statements for some sample data (as the table is before the UPDATE) and the results you want from that sample data (that is, the contents of the table after the UPDATE). Explain how you get those results from that data.
    As Jeneesh said, see the forum FAQ {message:id=9360002}

  • How to get same day of a month in every year in the DB ( To update a flag )

    Hi,
    I am trying to formulate an update query for a flag table in our database which contains dates, and flag columns. Currently the system have dates for the next ten years. The flags are updated with values 0 or 1 if a particular date falls under the required criteria.
    I need to update flag column for the same day of the month in every year. e.g. 2nd Sunday of October. The value should be updated to all years in the table. Currently I am using the following query to update the current year.
    UPDATE FILTERCALENDAR SET YEAR_WINDOW=1 WHERE c_date = NEXT_DAY( TO_DATE('OCT-2013','MON-YYYY'), 'SUNDAY') + (2-1)*7;
    and for next year Like
    UPDATE FILTERCALENDAR SET YEAR_WINDOW=1 WHERE c_date = add_months(NEXT_DAY( TO_DATE('OCT-2013','MON-YYYY'), 'SUNDAY') + (2-1)*7,+12)-1;
    This is not an excellent way to do it as it does not take care of leap years and it does not scan and update values in the whole table for all years correctly.
    Can any one help me to resolve this please.

    Hi,
    user10903866 wrote:
    Hi,
    I am trying to formulate an update query for a flag table in our database which contains dates, and flag columns. Currently the system have dates for the next ten years. The flags are updated with values 0 or 1 if a particular date falls under the required criteria.
    I need to update flag column for the same day of the month in every year. e.g. 2nd Sunday of October. The value should be updated to all years in the table. Currently I am using the following query to update the current year.
    UPDATE FILTERCALENDAR SET YEAR_WINDOW=1 WHERE c_date = NEXT_DAY( TO_DATE('OCT-2013','MON-YYYY'), 'SUNDAY') + (2-1)*7;That's the 2nd Sunday after October 1; the 2nd Sunday of October is the 2nd Sunday after September 30, so you need to subtract 1 more day before calling NEXT_DAY.
    I'd do it this way:
    WHERE   c_date = NEXT_DAY ( TO_DATE ( '01-OCT-2013', 'DD-MON-YYYY') - 8
                             , 'SUNDAY'
                     ) + (7 * 2)     -- Last number is week numberRemember, calling NEXT_DAY like this depends on your NLS_DATE_LANGUAGE.
    and for next year Like
    UPDATE FILTERCALENDAR SET YEAR_WINDOW=1 WHERE c_date = add_months(NEXT_DAY( TO_DATE('OCT-2013','MON-YYYY'), 'SUNDAY') + (2-1)*7,+12)-1;If you want the 2nd Sunday in October, 2014, then take the previous expression, and just change 2013 to 2014:
    WHERE   c_date = NEXT_DAY ( TO_DATE ( '01-OCT-2014'     -- or any month and year you want
                                        , 'DD-MON-YYYY'
                            ) - 8
                             , 'SUNDAY'
                     ) + (7 * 2)     -- Last number is week number
    This is not an excellent way to do it as it does not take care of leap years and it does not scan and update values in the whole table for all years correctly.
    Can any one help me to resolve this please. 
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    In the case of a DML operation (such as UPDATE) the sample data should show what the tables are like before the DML, and the results will be the contents of the changed table(s) after the DML.
    Explain, using specific examples, how you get those results from that data.
    See the forum FAQ {message:id=9360002}

  • Alternatives to using update to flag rows of data

    Hello
    I'm looking into finding ways of improving the speed of a process, primarily by avoiding the use of an update statement to flag a row in a table.
    The problem with flagging the row is that the table has millions of rows in it.
    The logic is a bit like this,
    Set flag_field to 'F' for all rows in table. (e.g 104million rows updated)
    for a set of rules loop around this
    Get all rows that satisfy criteria for a processing rule. (200000 rows found)
    Process the rows collected data (200000 rows processed)
    Set flag_field to 'T' for those rows processed (200000 rows updated)
    end loop
    Once a row in the table has been processed it shouldn't be collected as part of any criteria of another rule further down the list, hence it needs to be flagged so that it doesn't get picked up again.
    With there being millions of rows in the table and sometimes rules only processing 200k rows, i've learnt recently that this will create a lot of undo to be written and will thus take a long amount of time. (any thoughts on that)
    Can anyone suggest anything other then using an update statement to flag each row to avoid it being processed again?
    Appreciate the help

    With regard to speeding up the process, the answer is
    "it depends". It all hinges on exactly what you mean
    by "Process the rows collected data". What does the
    processing involve?the processing involved is very straight forwards.
    data in these large tables stay unchanged. for sake of this example, i'll call this table orig_data_table, the rules are set by users who have their own tables built (for this example we'll call it target_data_table).
    the rules are there to take rows from the orig_data_table and insert them into the target_data_table.
    e.g
    update orig_data_table set processed='F';rule #1 states : select * from orig_data_table where feature_1 = 310;this applies to 3000 rows in orig_data_table.
    these 3000 rows get inserted to target_data_table.
    final step is to flag these 3000 rows in the orig_data_table so that they are not used by another rule proceeding rule 1 : update orig_data_table.processed='T' where feature_1 = 310;
    commit;rule #2 states :select * from orig_data_table where feature_1=310 and destination='Asia' and orig_data_table.processed = 'F'so it won't pick the 3000 rows that were processed as part of rule #1
    once rule #2 has got the rows from orig_data_table (e.g 400000 rows)
    those get inserted to the target_data_table, followed by them being flagged to avoid being retrieved again
    update orig_data_table.processed='T' where destination='Asia';
    commit;continue onto rule #3...
    - Is the process some kind of transformation of the
    ~200,000 selected rows which could possibly be
    achieved in SQL alone, or is it an extremely complex
    transformation which can not be done in pure SQL?its not at all complex, as i say the data in orig_data_table is unchanged bar the processed field which is initially set to 'F' for all rows and then set to 'T' after each rule for those rows fulfilling the criteria of each rule.
    - Does the FLAG_FIELD exist purely for the use of
    this process or is it referred to by other
    procedures?the flag_field is only for this purpose and not used elsewhere
    Having said that, as a first step to simply avoid the
    update of the flag field, I would suggest that you
    use bulk processing and include a table of booleans
    to act as the indicator for whether a particular row
    has been processed or not.could you elaborate a bit more on this table of booleans for me, it sounds an interesting approach for me to test...
    many thanks again
    Sandip

  • How to generate a dynamic update query to update error flag in a mapping?

    i have a mapping in which i m loading log table through generated parameter file.But i want to update the error flag using dynamic update query.for that i have to generate a query and use update sqloverridw in target instances.but i m not getting how to implement it.Please help..!!

    Hi  All, I have a scenario. Below is the source record. field1|field2|field3|field4|field5|field6|field7
    5|20150329|1|980100001|500|My name is Lalita|25
    5|20150329|1|303444442|200|My name is |Lalita.I work in TCS|26
    5|20150329|1|442101001|1000|My name is Lalita.I worked Syntel|56
    5|20150329|1|446788900|300|My name|67  My source file is | separator. But for field6 the data might come with '|'.
    So I want to import the data along with '|' after separating all field in Informatica Layer.  Source team is not going to preformat the file. Please suggest how to achive this.

  • Oracle Fixed Assets API for updating depreciation flag after conversion

    Hi frnds,
    Do we have any API's or update program to update the depreciation flag after asset conversion. We are converting all the legacy assets from 11.0.3 to r12 with a depreciation default flag of 'N' since depreciation is already calculated in 11.0.3 and we don't want to calculate any depreciation when we run our year end depreciation in R12. But anyhow at a later point we need to update the depreciation flag to the original value that of 11.0.3 in r12, so can you please help me if there is any API or standard program to update the depreciation flag.
    Thanks,
    Purnender

    Welcome to the forums !
    Pl post exact details of OS, database and EBS versions. Pl see if MOS Doc 206474.1 (Oracle Assets Adjustments API Documentation Supplement) can help
    HTH
    Srini

  • Why do some Security Updates get flagged by SCCM 2012 as "Not Required" when the Bulletin ID states they are?

    Hiya
    We've just pushed all updates from the March patch Tuesday Security Bulletin to our test Workstations/Servers (using SCCM 2012 R2)
    One of the patches (MS14-013 - KB2929961) hasn't applied to a selection of 2008 R2 and 2012 Servers, but according to the Bulletin notes for this it is applicable to both. It has applied to my Windows 8 boxes.
    The servers don't already have this applied, its not a superseded update and SCCM has flagged this as "Required" for x64 versions of Windows 7, Windows 8, Windows 8.1 but "Not required" for any servers. 
    Bulletin ID states its applicable to all except Itanium based editions - https://technet.microsoft.com/en-us/security/bulletin/ms14-013
    If I download the update and try to run it manually on the servers I get "The update is not applicable to your computer"
    So it looks as though the WUAgent and SCCM compliance are reporting correctly, but that the Bulletin ID isn't entirely correct??
    Has anyone else found this? We use the Bulletin IDs for monthly meetings on what we're patching and what system it will affect so causes a lot of confusion with system owners when a patch doesn't apply that they're expecting to get applied.
    Thanks!

    Hi,
    Without any indepth investigation if I am not mistaking the update is for Directshow and that component is installed with the Desktop Experience on the server OS's, and therefor the update is not applicable on the servers.. 
    Could that be the case?
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • How to update 'Primary_Per_Type' flag for a Party Site Use?

    Hi,
    We have few party sites flagged as Primary Bill To and Primary Ship To. We want to change this flag for these party sites and flag some other sites at Primary Bill to and Primary Ship To party sites. This is required for correct defaulting of the Bill To and Ship To in iStore (R 12.0.4).
    iStore users are not allowed to change bill to addresses and hence the orders placed are having wrong bill to address. Besides, 'Profile' link has been removed for all iStore users and Primary User functionality is also not implemented.
    I tried using 'Oracle Customers Online Super User' responsibility but it does not show Primary checkbox for Address Purpose.
    Thanks,
    Vishwas

    Hi Vishwas,
    As soon as you mark one site as primary for some usage say "BILL TO" then the other site gets de-marked. So the basic thing which you need to do is mark the new site as the primary "BILL TO" and the unchecking will be taken care of.
    Now the thing is that whether you have already created the new site and now trying to mark the site use as primary or you are yet to create it. If you are yet to create it then i think the primary flag might be exposed. Otherwise you will have to personalize the page to expose it. In the former case also you will have to personalize the page to expose the primary flag.
    The other option which you have is to use the TCA APIs to do so from PL/SQL.
    Regards,
    Ravi

  • Trigger and Update Flag Table

    I've recently started trying to automate around a dozen procedures. These procedures are set to run immediately after the necessary previous procedure(s) is(are) done.
    What I am attempting to accomplish is a single generic trigger that will fire off each procedure when its parent procedures have finished firing. This will be accompanied by an update_flag table with three columns
    PARENT_PRC----------------------CHILD_PRC----------------------FLAG
    parent_prc_name1--------------child_prc_name1-----------------N
    parent_prc_name1--------------child_prc_name2-----------------N
    parent_prc_name3--------------child_prc_name3-----------------Y
    Logic:
    *1.*     When a procedure fires it updates this table to set any rows in which it is the “PARENT_PRC” by updating the FLAG column to = Y.
    *2.*     The trigger will execute a child procedure if its flag (or in the case of multiple parent procedures; all of its flags) are set to 'Y'. This trigger is set to fire AFTER a table update on the UPDATE_FLAG table.
    ----a.     I have to execute the procedure UFLAG in a job because I want the trigger to execute the procedure and then continue running immediately, rather than wait for the procedure to finish then commit. This way the trigger could start several procedures all running at the same time.
    ----b.     I have made it an autonomous transaction because I needed the job to fire immediately rather than be queued, which required a commit within the trigger.
    *3.*     The last step is to set the flag in UPDATE_FLAGS back to 'N' for CHILD_PRC = '||uflag||' once the child procedure is complete.
    ----a.     I have tried placing the update child_prc = 'N' in the trigger but it won’t allow a trigger that fires on update to update the same table.
    ----b.     I want to avoid putting the update statement in all of my procedures because I would like the option of running these procedures manually for testing purposes WITHOUT effecting the update_flags table.
    Number 3. is the key problem I have been having. Placing code within the trigger to update the update_flags table setting 'Y's back to 'N's once the procedures have fired causes a deadlock error.
    I believe this is simply because the trigger is attempting to update a table which (upon updating) causes the same trigger to fire before it has finish executing.
    How can I update the Flag table to reset the update flags back to 'N'?
    Is there a different way of doing this all together?
    Here is some code with dummy procedures that demonstrates what I have so far.
    With this code, executing parent procedures should set the update_flag table to 'Y' for FLAG where procedure = 'parent_prc'.
    I need to find a way to execute the child procedures AND set the FLAG column back to 'N' from the trigger.
    ex. executing parent_1 should set update_flags.flag = 'Y' where parent_prc = 'parent_1' and thus execute procedure CHILD_A and CHILD_B.
    create table update_flags (parent_prc varchar2(10), child_prc varchar2(10), flag varchar2(1));
    insert into update_flags values('parent_1', 'child_a', 'N');
    insert into update_flags values('parent_1', 'child_b', 'N');
    insert into update_flags values('parent_2', 'child_c', 'N');
    insert into update_flags values('parent_3', 'child_c', 'N');
    insert into update_flags values('parent_4', 'child_d', 'N');
    CREATE OR REPLACE procedure parent_1 as
    BEGIN
    update update_flags set flag = 'Y' where parent_prc = 'parent_1';
    END parent_1;
    CREATE OR REPLACE procedure parent_2 as
    BEGIN
    update update_flags set flag = 'Y' where parent_prc = 'parent_2';
    END parent_2;
    CREATE OR REPLACE procedure parent_3 as
    BEGIN
    update update_flags set flag = 'Y' where parent_prc = 'parent_3';
    END parent_3;
    CREATE OR REPLACE procedure parent_4 as
    BEGIN
    update update_flags set flag = 'Y' where parent_prc = 'parent_4';
    END parent_4;
    CREATE OR REPLACE procedure child_a as
    BEGIN
    dbms_output.PUT_LINE('CHILD_A Worked');
    commit;
    END child_a;
    CREATE OR REPLACE procedure child_b as
    BEGIN
    dbms_output.PUT_LINE('CHILD_B Worked');
    commit;
    END child_b;
    CREATE OR REPLACE procedure child_c as
    BEGIN
    dbms_output.PUT_LINE('CHILD_C Worked');
    commit;
    END child_c;
    CREATE OR REPLACE procedure child_d as
    BEGIN
    dbms_output.PUT_LINE('CHILD_D Worked');
    commit;
    END child_d;
    CREATE OR REPLACE TRIGGER MASTER_TRG
    AFTER UPDATE
    ON UPDATE_FLAGS
    DECLARE
    Pragma  AUTONOMOUS_TRANSACTION;
    BEGIN
      DECLARE
      job_num number;
      uflag varchar2(1000);
      BEGIN
            select  MAX(case when COUNT(case when flag='Y' then 1 end)=COUNT(*) then CHILD_PRC else '  ' end)
            into uflag
            from        update_flags
            group by    child_prc;
            IF   uflag <> '  ' THEN
                                      --update update_flags set  flag = 'N' where child_prc = uflag     --(line of code that causes deadlock error)
                            dbms_job.submit (job => job_num,
                            what => ' '||uflag||';'
            END IF; 
       END;            
    COMMIT;
    END MASTER_TRG;
    execute parent_2;
    execute parent_3;

    >
    I think I am getting my head around the transactional/trigger issue.
    >
    It doesn't sound like it since you are still talking 'triggers'. At any rate it is OP that needs to get their head around it.
    OP doesn't even know what the entire process needs to be but has already decided that
    1. a single generic trigger that will fire off each procedure when its parent procedures have finished firing
    2. an update_flag table with three columns: PARENT_PRC, CHILD_PRC, FLAG
    3. a procedure fires it updates this table to set any rows in which it is the “PARENT_PRC” by updating the FLAG column to = Y.
    4. a job - I have to execute the procedure UFLAG in a job
    5. I have made it an autonomous transaction because I needed the job to fire immediately rather than be queued, which required a commit within the trigger.
    6. there should be an option of running these procedures manually for testing purposes WITHOUT effecting the update_flags table.
    Fortunately OP had the wisdom to ask
    >
    Is there a different way of doing this all together?
    >
    Doesn't anyone design things anymore? Seems like everyone just wants to decide what the solution ought to be be and then try to force the problem to fit into it.
    The first stage is the DESIGN - not the implementation details or technology to use.
    The first design step is to outline, or flowchart, the PROCESS that needs to take place. Since OPs post lacks sufficient detail I will substitute my own 'guesstimations' to illustrate.
    1. there are one or more 'parent' processes
    2a. these parent processes are allowed to run in parallel as they do not interfere in any way with the processing done by other parent or child processes. (is this true?)
    2b. these parent processes ARE NOT allowed to run in parallel as they may interfere with each other.
    3. Each parent process can have one or more 'child' processes. (it appears that these aren't really children but rather processes that are 'dependent' on the parent or that must always be executed after, and each time that the parent executes.
    So here are just SOME of the things that are missing that must be known before possible alternatives can be explored
    1. Re item #2 - can the parent processes be executed in parallel? Or must they be executed serially? Will any of the parent processes be dependent on any other parent or child process?
    2. What is the relationship between a parent process and its child processes? Is the parent always executed first? What triggers the parent execution? How often is it executed?
    What if it is already executing? What if other parent processes are currently executing? What if one or more of its child processes are executing? What if the parent process fails for any reason - what action should be taken?
    Based on what was posted a set of parent and child processes might need nothing more than: execute parent, execute child1, execute child2, . . ., execute childn.
    3. What is the relationship between the child processes that belong to the same parent? Can they be executed in parallel (i.e. are they completely independent)? Or must they be executed in some particular order? What if one or more of the child processes fails for any reason - what action should be taken?
    4. Will any other user or process be executing these parent or child processes? That could interfered with the automated stream.
    5. What type of exception handling and recovery needs to be implemented in one or more steps of the processing fail for some reason?
    Typically there is often one or more control tables (OPs flag table) to control and limit the processing. But the table would have status information for every process not just the children:
    A. STATUS - DISABLED, ACTIVE, RUNNING, IDLE, ERROR
    B. START_TIME
    C. END_TIME
    D. RESULT_CODE
    The control table can be used by a parent or child process to determine if it is permitted to run. For example the first thing a procedure might do is check it's own STATUS. If it is already running it would exit or log an error or message. If that test is passed it might check the status of any dependent processes. For example it might check that its child processes are ACTIVE and ready to run; if a child was still running the parent would exit or log an error or message.
    The control process would lock the appropriate control table records (FOR UPDATE) and would set the status and other fields appropriately to prevent interference by other processes or procedures.
    Design first. Then look at the implementation options.

  • Open SQL statment for Update flag based on Date

    Dear all,
    I am trying to write an Open SQL statement to update a flag in a table. Table Ztable1 with fields Sr.No, Flag, Datefrom, DateTo. i would like to update Flag entry in the table only if today falls in between Datefrom & Dateto. I can satisfy the above requirement using the following ABAP code.
    DATA: lv_timestamp TYPE timestamp,
          lv_today LIKE adr2-valid_from,
          tz TYPE timezone.
    CONVERT DATE sy-datlo TIME sy-timlo INTO TIME STAMP lv_timestamp
      TIME ZONE tz.
    lv_today = lv_timestamp.
    update ztable1 set flag = 'X' where lv_today BETWEEN datefrom and dateto.
    But the issue is that, DateFrom & DateTo contains space aswell Dates. Datefrom can be space if it is start of Time (01010001) and also DateTo can be space if it is End of time (31129999). Which means that if DateFrom is space, then it should treated as 01010001, simlarly DateTo is space, then it should be 31129999. How can i write the if else cases within where clauses.
    I know Decode statement in Native sql programming, but that won't fit for Opensql in ABAP. Also, because of huge entries in database, i cannot read entries, manupulate & then update.
    How can i enhance the same above Update statement to cater this need.
    Please advise.
    Thanks a lot in advance.
    Greetings, Satish

    Hi,
    first fetch records in to internal table.
    ranges: r_range for sy-datum.
    loop at itab into wa.
    if wa-validfrom is initial.
    wa-validfrom =  (here u pass valid from date).
    elseif wa-validto is initial
    wa-validto = 99991231.
    endif.
    r_range-low = wa-validfrom
    r_range-high = wa-validto
    *check here current date is falling in interval. if its fall between ranges update flas in work area and *modify you internal table
    if sy-datum in r_range.
    wa-flag = 'x'.
    modify itab from wa.
    endif.
    refresh r_range.
    clear wa-flag.
    endloop.
    *--Finally update your ztable
    modify ztable from table itab.
    Regards,
    Peranandam

  • How can I make IMAP message flags (replied, forwarded) update regularly ?

    Several Macs are connecting to the same (Citadel) IMAP-server here. The problem is that if someone replies to an existing message the "replied to" flag (little arrow in the message list) is only showing up on the other machines if I restart mail.app on them.
    Even manual synchronization via the Mailbox/Synchronize.. does not update the flags. The same applies to the other flags (forwarded, read).
    How can I configure mail.app to automatically synchronize these flags ?

    I will clarify. I would like to select emails that are either:
    Replies to recently sent mail. This isn't perfect, since some messages are not important, so I don't need to know right away that there's a reply.
    or
    Replies to specific messages that I would mark as important within Mail.app, somehow. I don't specifically want to mark the messages with an !important flag, since that would impose on the recipient, and there's no way to guarantee that they will reply with the !important flag intact.
    I suppose that I might use Contacts groups and add the "currently important" people to a specific group, then select the messages from people in that group, but that is not exactly optimal, since I'd have to maintain that group manually.

  • IBooks always shows update flag after syncing with mac

    Hi,
    I'm running OSX Mavericks on the Mac and iOS 8.1.1 on the iPad.I don't use iCloud and I backup the ipad over my mac via iTunes.
    Each time I sync via iTunes and, after that, I start iBooks on the ipad, many books are shown with the update flag. In the attached image, you can see that there are 23 publications needing an update, but it's not true because they are already up to date.
    I tried to update them on the iPad then I did a backup but, after the resync, they were asking an update... again.
    iBooks on mac displays the same books as the ipad but without the update-needed flag.
    Books on both ipad and mac are perfectly accessible.
    Any suggestion?

    The itunes content will be erased from the iphone when you sync to another computer.
    Iphone can sync to ONE computer at a time.
    Did you not maintain a back up of your music?
    If you have at least one contact and calendar entry in your computer, you should get the option to merge the data.

  • Error while updating table before branching to a report

    Hi,
    I have an apex form screen where on click of a button, i need to change a few flags on the screen and then display a bi publisher report.
    when the user clicks the PRINT Button a javascript function is called, which will set the flags and submits the form. I have the default process row of table process to update the form fields.
    in the branch i gave the BI publisher report url.
    everything works fine so far.
    if i click the print button again for a second time, i get a checksum ... error as shown below.
    ORA-20001: Error in DML: p_rowid=982-000790, p_alt_rowid=_ID_NUMBER, p_rowid2=, p_alt_rowid2=. ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "BD63FDD3142B79017CCD2C8DA8ED8CA7" application checksum = "B2FD7581A9478214E59264F9C1CFAF96"
    Error Unable to process row of table .
    OK
    Any idea how to fix this?
    What i am trying to do is:
    when the print button is clicked then i need to set the Print flag in the screen and database to true.I am using the default row update process generated by apex for a table form.
    Thanks
    Knut

    Hi Scott,
    example 1
    I have a demo at the following url
    http://apex.oracle.com/pls/otn/f?p=30091:6:1206476651563662::NO:::
    1. page 6 is the report and page 7 will be the details form.
    2. select a record from the report click edit and it will take you to the details screen page 7.
    3. on page 7 i have 2 select boxes with YES/NO flag. Initially set them to NO.
    save changes.
    4. click on the print button. it will reset the select lists to YES and opens a report.
    5.now go and edit anything on the screen and click apply changes.
    we will get the an error.
    All i am trying to do is update the flags to YES before displaying the report which works fine. but if i try to edit any data and save it throws an error.
    is my table.
    CREATE TABLE "DEMO_MINISTER"
    (     "MINISTER_ID" VARCHAR2(12),
         "NAME" VARCHAR2(50),
         "CERT_FLAG" VARCHAR2(1),
         "LABEL_FLAG" VARCHAR2(1)
    MINISTER_ID" is the primary key generated using a sequence. (i have to actually generate it with - year prefix etc hence a varchar)
    example 2:
    http://apex.oracle.com/pls/otn/f?p=30091:1:607292687304632:::::
    i have another page page 1 with demo_customers list. here the id is a number here. on edit it displays page 5 where i tried the same print reset flag stuff here and it works.
    Table Data Indexes Model Constraints Grants Statistics UI Defaults Triggers Dependencies SQL
    CREATE TABLE "DEMO_CUSTOMERS"
    (     "CUSTOMER_ID" NUMBER NOT NULL ENABLE,
         "CUST_FIRST_NAME" VARCHAR2(20) NOT NULL ENABLE,
         "CUST_LAST_NAME" VARCHAR2(20) NOT NULL ENABLE,
         "CUST_STREET_ADDRESS1" VARCHAR2(60),
         "CUST_STREET_ADDRESS2" VARCHAR2(60),
         "CUST_CITY" VARCHAR2(30),
         "CUST_STATE" VARCHAR2(2),
         "CUST_POSTAL_CODE" VARCHAR2(10),
         "PHONE_NUMBER1" VARCHAR2(25),
         "PHONE_NUMBER2" VARCHAR2(25),
         "CREDIT_LIMIT" NUMBER(9,2),
         "CUST_EMAIL" VARCHAR2(30),
         "PRINT_FLAG" VARCHAR2(1),
         "PRINT_LABEL_FLAG" VARCHAR2(1),
         CONSTRAINT "DEMO_CUST_CREDIT_LIMIT_MAX" CHECK (credit_limit <= 5000) ENABLE,
         CONSTRAINT "DEMO_CUSTOMERS_PK" PRIMARY KEY ("CUSTOMER_ID") ENABLE
    So what should i do to get the example 1 to work.
    Thanks
    knut

  • Update of BP general data during creation of BP in transaction BP

    Hi,
    I wish to update some flags on a BP record based upon a call to an external system via XI in BADI ADDRESS_CHECK.
    This must happend during the creation of the BP record in transaction BP so do not suggest using any BAPIs as these will only work on existing BP records.
    However there is not a lot of documentation on how to achieve this.
    Any pointers greatly received.
    Cheers
    Colin.

    Hello,
    in this bapi the paramaters type is: RAW, so file of byte. How do you used it to modify data ?
    Tks.

  • Can Crystal Report XI update data in a SQL Table

    Post Author: abidamin
    CA Forum: Data Connectivity and SQL
    Hi,
    I have a very specific requirement to update a flag field in one of SQL2005 database tables, I need to update a One character field with Y on all selected records printed on the report as a result of running the report successuflly.
    Can anyone let me know if it is possible to update a SQL table field using Crystal Report XI.
    Regards

    Post Author: SKodidine
    CA Forum: Data Connectivity and SQL
    Perhaps this KBase article can be of some help.
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2011921&sliceId=&dialogID=18608077&stateId=1%200%2018610053

Maybe you are looking for