Insert based on existing values

I have a text field with values like this (simplified): 'XXX_01', 'XXX_02', 'YYY_01'...
I need to insert values with increasing final number, for example the next 'XXX' would be 'XXX_03', so i need to check which is the current higher 'XXX_%' and add +1.
The problem comes when there are many concurrent clients, so one may read 'XXX_02' but meanwhile another client does the same and they both try to insert 'XXX_03'.
I can't use sequences cause i would need one for XXX, one for YYY... (infinite possibilities).
What would you recommend?

I agree, the design/data model is flawed.
An improvement would be to use parent and child table. Here is an illustration:
06:25:22 > create table parent_tb
06:25:22   2    (prefix varchar2(3),
06:25:22   3     max_child_seq number(2));
Table created.
Elapsed: 00:00:00.10
06:25:22 >
06:25:22 > alter table parent_tb add constraint parent_pk primary key(prefix);
Table altered.
Elapsed: 00:00:00.09
06:25:22 >
06:25:22 > create table child_tb
06:25:22   2    (prefix varchar2(3),
06:25:22   3     child_seq number(2),
06:25:22   4     formatted_key varchar2(6));
Table created.
Elapsed: 00:00:00.09
06:25:22 >
06:25:22 > alter table child_tb add constraint child_pk primary key(prefix, child_seq);
Table altered.
Elapsed: 00:00:00.09
06:25:22 >
06:25:22 > alter table child_tb add constraint child_parent_fk
06:25:22   2     foreign key (prefix) references parent_tb(prefix);
Table altered.
Elapsed: 00:00:00.06
06:25:22 >
06:25:22 > alter table parent_tb add constraint parent_maxchild_fk
06:25:22   2     foreign key (prefix,max_child_seq) references child_tb(prefix,child_seq)
06:25:22   3     deferrable initially deferred;
Table altered.
Elapsed: 00:00:00.12
06:25:22 >
06:25:22 >
06:25:22 > insert into parent_tb (prefix, max_child_seq) values('XXX',null);
1 row created.
Elapsed: 00:00:00.03
06:25:22 > insert into parent_tb (prefix, max_child_seq) values('YYY',null);
1 row created.
Elapsed: 00:00:00.01
06:25:22 > commit;
Commit complete.
Elapsed: 00:00:00.00
06:25:22 >
06:25:22 > declare
06:25:22   2    procedure insert_child(in_prefix in parent_tb.prefix%type) is
06:25:22   3      v_latest_seq parent_tb.max_child_seq%type;
06:25:22   4    begin
06:25:22   5      update parent_tb set max_child_seq = nvl(max_child_seq,0)+1
06:25:22   6        where prefix=in_prefix
06:25:22   7        returning max_child_seq into v_latest_seq ;
06:25:22   8      insert into child_tb(prefix, child_seq, formatted_key)
06:25:22   9        values(in_prefix,v_latest_seq,in_prefix||'_'||to_char(v_latest_seq,'FM09'));
06:25:22  10    end insert_child;
06:25:22  11  begin
06:25:22  12    insert_child('XXX');
06:25:22  13    insert_child('YYY');
06:25:22  14    insert_child('XXX');
06:25:22  15    insert_child('XXX');
06:25:22  16    commit;
06:25:22  17  end;
06:25:22  18  /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.01
06:25:23 >
06:25:23 > select * from parent_tb order by prefix;
PRE MAX_CHILD_SEQ
XXX             3
YYY             1
2 rows selected.
Elapsed: 00:00:00.11
06:25:23 > select * from child_tb order by prefix, child_seq;
PRE  CHILD_SEQ FORMAT
XXX          1 XXX_01
XXX          2 XXX_02
XXX          3 XXX_03
YYY          1 YYY_01
4 rows selected.
Elapsed: 00:00:00.75

Similar Messages

  • How can I do a multi-row insert based on a value in a field on my form?

    My Form contains these fields (for the purpose of inserting rows into my 'Ports' table)
    ..Number_of_Ports
    ..Device_Name
    ..Router_Name
    ..Router_Slot_Number
    ..Router_Port_Number
    ..Vlan_Number
    Based on the value entered for 'Number_of_Ports'
    I would like to insert 'X' number of rows into my 'Ports' Table
    with the values which are contained in:
    ..Device_Name
    ..Router_Name
    ..Router_Slot_Number
    ..Router_Port_Number
    ..Vlan_Number
    Can someone help me with this,
    Or should I post this on another forum?
    Thanks in advance- Gary

    Gary,
    You can accomplish this with a PL/SQL process using a FOR LOOP. For the following example, I am going to use fields that would have been generated for Page 1 of an application:
    Begin
    FOR i IN 1..:P1_NUMBER_OF_PORTS LOOP
    INSERT INTO tablename(port_number, device_name, router_name, router_slot_number_vlan_number)
    VALUES(i, :P1_DEVICE_NAME, :P1_ROUTER_NAME, :P1_ROUTER_SLOT_NUMBER, :P1_ROUTER_PORT_NUMBER, :P1_VLAN_NUMBER);
    End Loop;
    End;
    Hope this helps.
    Mike

  • Constraint based on existing values for a column in the table

    I have a table as follows
    create table MS_FAV_ACCT
    NICKNAME VARCHAR2(50) not null,
    ACCOUNT VARCHAR2(6) not null,
    SUB_ACCOUNT VARCHAR2(3) not null,
    DETAIL VARCHAR2(4) not null,
    ICID VARCHAR2(3) not null,
    SEGMENT VARCHAR2(2) not null,
    PRIMARY_ACCT VARCHAR2(1) not null
    I want to have a constraint such that there can be only one row with PRIMARY_ACCT ='Y' there could be multiple rows with value 'N'.
    I have put a CHECK constraint on this column to check for values Y or N but I want to be able to check this condition too that only one row can have PRIMARY_ACCT as Y .
    I saw a thread on this forum regarding using UNIQUE INDEX with case when but didnt understand how I could use it in my case.
    Could anyone please help?

    You only want to have 1 row in the table with an identifier of 'Y'?
    That is what i understood, in which case you can use something like this.
    ME_XE?create table MS_FAV_ACCT
      2  (
      3     NICKNAME VARCHAR2(50) not null,
      4     ACCOUNT VARCHAR2(6) not null,
      5     SUB_ACCOUNT VARCHAR2(3) not null,
      6     DETAIL VARCHAR2(4) not null,
      7     ICID VARCHAR2(3) not null,
      8     SEGMENT VARCHAR2(2) not null,
      9     PRIMARY_ACCT VARCHAR2(1) not null
    10  );
    Table created.
    Elapsed: 00:00:00.03
    ME_XE?CREATE UNIQUE INDEX MS_FAV_ACCT_U01 ON MS_FAV_ACCT (CASE WHEN  PRIMARY_ACCT = 'Y' THEN 1 ELSE NULL END);
    Index created.
    Elapsed: 00:00:00.01
    ME_XE?
    ME_XE?INSERT INTO MS_FAV_ACCT VALUES('ONE','TWO', 'U','I','X','A','N');
    1 row created.
    Elapsed: 00:00:00.00
    ME_XE?INSERT INTO MS_FAV_ACCT VALUES('ONE','TWO', 'U','I','X','A','Y');
    1 row created.
    Elapsed: 00:00:00.00
    ME_XE?INSERT INTO MS_FAV_ACCT VALUES('ONE','TWO', 'U','I','X','A','N');
    1 row created.
    Elapsed: 00:00:00.01
    ME_XE?INSERT INTO MS_FAV_ACCT VALUES('ONE','TWO', 'U','I','X','A','Y');
    INSERT INTO MS_FAV_ACCT VALUES('ONE','TWO', 'U','I','X','A','Y')
    ERROR at line 1:
    ORA-00001: unique constraint (TFORSYTH.MS_FAV_ACCT_U01) violated

  • Validating an attribute based on the value of another while inserting

    Hi guys
    I need to validate an attribute based on the value of another attribute.
    Example:
    inside some entity I have the following validation function
    public boolean validateAtt1(Number data){
         if (this.getAtt2() < some vlaue)
              return false;
         return true;
    this function works fine when I'm updating a record, but when I'm inserting a new record the this.getAtt2 return null, now I don't want to override the validateEntity function I want to override the validate function for att1; so in other words is there a way to reach att2 in the validation function of att1 when I'm inserting a new record, because the this.getAtt2() returns null if I'm inserting a new record.

    Using attribute-level setter methods won't work because when the value of a particular attribute is being set, the values of the other attributes might not yet have been set. This explains for example why it does not work when inserting a new record. You therefore have to validate at entity level.
    Rather than coding on the validateEntity() method you use a built-in Validator or Method Validator. When recording validators like this, you can provide a separate message for each business rule. If you also have the bundled exception mode enables (which will be the case by default for web applications), then multiple messages can be shown at the same time.
    If you have one business rule involving two different attributes, for example a and b, and you must provide different messages based on if a is causing the violation or b, you can do it like this:
    - implement one method doing the validation and that will indicate which attribute is causing the violation
    - implement two different method validators (with two different messages) that call the method doing the actual validation and return false based on the attribute causing the violation
    For more information about implementing business rules in ADF BC, you might have a look at this white paper:
    http://www.oracle.com/technology/products/jdev/collateral/papers/10131/businessrulesinadfbctechnicalwp.pdf
    Jan Kettenis

  • Inserting rows into table Based on Column Values.

    Hi,
    I am trying to inserting rows into a table based on Column.
    Id      Name        
    Data
    N 105.1.1
    http://www.example.com/New/105.1.1
    U 105.1.2               http://www.example.com/Used/105.1.2
    S 105.1.3               http://www.example.com/Sold/105.1.3
    I want a table like this. 
    I want to insert Data column value based on Id and Name Columns
    If Id = N and Name = 105.1.1 then Data value should be insert as   http://www.example.com/New/105.1.1
    If Id = U and Name = 105.1.2 then Data value should be  insert as  http://www.example.com/Used/105.1.2
    If Id = S and Name = 105.1.3 then Data value should be insert as   http://www.example.com/Sold/105.1.3
    Can you please help us to write query to insert above Data Column values based on Id and Name Columns.

    INSERT INTO tbl (col) SELECT
    CASE WHEN id='N' and Name='105.1.1 ' THEN 'http://www.example.com/New/105.1.1'
              WHEN id='U' and Name='105.1.2 ' THEN 'http://www.example.com/New/105.1.2'
    END col
    FROM anothertbl
    Sorry , cannot test it right now.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Insert a number of rows for tabular form based on frequency value

    Hi,
    I have a page with two search items.
    Based on the values in the search item, a report is created as tabular form.
    The information displayed has a frequency column.
    Values for frequency can be Q, Y, M, D
    I would like to know if it is possible to to load the form with a standard numbers of row depending on the frequency.
    Example: If frequency is Q ,then when i click the go button in the search region, the tabular shoud load with the information displaying 4 rows, even if the information returned is less than 4 rows.
    If frequency is Y ,then when i click the go button in the search region, the tabular shoud load with the information displaying 2 rows, even if the information returned is less than 2 rows.
    When no data is found, the form should load displaying a number of empty rows depending on the frequency.
    Thanks

    Following this example:
    http://apex.oracle.com/pls/otn/f?p=31517:209
    you should be able to achive that.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Need to supress main report based on shared value comes from subreport

    Hi,
    I have a database that is used in both main report and subreport. On main report I have column a,b ,c, d,e,f to display in detail section, the subreport (column c, g,h etc) is also displayed on detail section, the link between main report and subreport is column a,b and a formula based on the value of c. So the link is within one database, some records link with other records  and display both matching records on one line(especially column c shows one value in main report and another value in subreport). That's why I need subreport and I can display the report correctly.
    Here is my question: if one record in main report couldn't find a match in subreport (subreport is blank), then I would like to show this record; if one record in main report does find a match in subreport, I don't want it to show(need to be supressed). I can define a shared variable to flag whether the subreport is blank or not, but this shared variable has to be placed under the section of subreport in main report and I don't know how to supress the upper detail section with subreport in it.
    Any help would be appreciated!
    Helen

    Hi
    In this case you need to insert the same sub report twise.
    Example :
    Detail a--Insert the sub report and go in sub report suppress all sections and using shared variables bring the value to main report.
    Detail b -- based on detail a sub report suppress the main report records
    Detail c-- Your actual sub report will display the values.
    Note : use the same links for your detail 'a' sub report which you are using for detail 'c' sub report.
    Thanks,
    Sastry

  • SSIS - Loop through files from a file path based on the value in the variable

    Experts,
    I have a requirement where I'll be loading multiple files in to a SQL server table and archive the files when loaded. However, the challenge is , the file path should be dynamic based on the value of a variable (say, @ProductName).
    For example: If I am running the package for variable @ProductName="Product", the file path would be "\\....\Src\Product", in that case the ForEachLoop will loop through all the files in that folder, load them to the table and Archive
    the files to the "\\....\Src\Product\Archive" folder.
    Similarly, if the @ProductName="Product_NCP", the foreachloop container should loop through files in the "\\....\Src\Product_NCP" folder, load them to the table and archive them to the ""\\....\Src\Product_NCP\Archive"
    folder.
    Any suggestions? I should be able to run the package manually just by passing the "@Product" value, create Archive folder if it doesn't exist, load the data and archive the files.

    Yes
    1. Have a variable inside SSIS to get folder path. Set path based on your rule using an expression
    like
    (@[User::ProductName] == "Product" ? "\\....\Src\Product" : (@[User::ProductName] == "Product_NCP" ? \\....\Src\Product_NCP:..))
    similary archive
    (@[User::ProductName] == "Product" ? "\\....\Src\Product\Archive" : (@[User::ProductName] == "Product_NCP" ? "\\....\Src\Product_NCP\Archive" :..))
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Performance operations based on Column values in SQL server 2008

    Hi ,
    I have a table which consist of following columns
    ID    Formula              
    Values                 
    DisplayValue
    1                    
    a*b/100       100*12/100    
          null
    2                    
    b*c/100       
    12*4/100              
    null
    I want to perform operation based on column "Values" and save data after operations in new column Name "Display Value" .i.e I want to get the below result . Can anyone please help.
    ID    Formula              
    Values                 
    DisplayValue
    1                    
    a*b/100       100*12/100    
          12
    2                    
    b*c/100       
    12*4/100             
    0.48
    Thanks for the help.
    Regards, Priti A

    Try this,
    create table #mytable (ID int,Formula varchar(10), [Values] varchar(10), DisplayValue decimal(10,4))
    insert into #mytable values(1 ,'a*b/100','100*12/100',null)
    insert into #mytable values(2 ,'b*c/100','12*4/100',null)
    declare @rowcount int=1
    while @rowcount <= (select max(id) from #mytable)
    begin
    declare @expression nvarchar(max)
    select @expression=[values] from #mytable where id = + @rowcount
    declare @sql nvarchar(max)
    set @sql = 'select @result = ' + @expression
    declare @result decimal(10,4)
    exec sp_executesql @sql, N'@result decimal(10,4) output', @result = @result out
    update #mytable set DisplayValue= @result where id = @rowcount
    set @rowcount=@rowcount+1
    end
    select * from #mytable
    Regards, RSingh

  • Checkboxes in report to insert or update a value, doesn't do both

    I'm going crazy trying to solve this, hopefully someone can help me out. At the moment, I have a credit card table that will contain the information relating to a user-credit card pairing. Banks and such can submit credit cards to users, and the credit card table will be updated, with the column Approved_Flag being set to "N". Now, in another page, I have a report that displays any credit cards that a user may want, along with checkboxes. This report contains any bank submitted cards, or any cards that have been marked "General". Users can decide which ones they would like to keep, and then hit a submit button, which will update the credit card table. Existing records in the table would have the Approved column marked 'Y', new records from the so called "General" cards would be inserted.
    The issue is that with the code I've written, it updates any existing records in the credit card table perfectly, but it will not insert any new information. The following is my code for the process that activates when the submit button is hit:
    FOR i in 1..APEX_APPLICATION.G_F01.count
    LOOP
    MERGE INTO ls_credit_cards dest
    USING( SELECT apex_application.g_f01(i) credit_card_id,
    :F125_USER_ID created_by,
    sysdate created_on,
    :P54_CARDS card_id,
    :P54_USER user_id,
    'Y' approved_flag
    FROM dual) src
    ON( dest.credit_card_id = src.credit_card_id )
    WHEN MATCHED
    THEN
    UPDATE SET dest.approved_flag = src.approved_flag
    WHEN NOT MATCHED
    THEN
    INSERT( credit_card_id,
    created_by,
    created_on,
    card_id,
    user_id,
    approved_flag )
    VALUES( src.credit_card_id,
    src.created_by,
    src.created_on,
    src.card_id,
    src.user_id,
    src.approved_flag );
    END LOOP;
    Through some testing, I've found out the the issue is any "General" credit cards will not have a credit card ID assigned to them. By hard coding it, I can get them to insert, but then existing records do not get updated. I've used this code to assign each checkbox in the table a credit_card_id (I think...) so I don't understand why this isn't working.
    APEX_ITEM.CHECKBOX(1,credit_card_id) " ",
    Could anyone shed some light on how I can do this? I would appreciate it IMMENSELY

    A Trigger is just a set of code that runs when certain DML events are applied to a specific table. Here's an example of a simple trigger that assigns a value to a key field when no value is supplied (NULL). Notice that the trigger makes use of another structure - a Sequence - for determining the ID. Sequences are just auto-incrementing values that are very useful for deriving unique values for use in primary key fields, etc.
    Here's an example of how to create a sequence using SQL:
    CREATE SEQUENCE SEQ_MVR_RATING_SCALE
        MINVALUE 1 INCREMENT BY 1 START WITH 1
    /You can also create them directly using the SQL Workshop portion of the APEX console.
    Here's an example of how to create a trigger that uses that sequence to populate the key value:
    CREATE OR REPLACE TRIGGER  BI_MVR_RATING_SCALE
      before insert on MVR_RATING_SCALE
      for each row
    declare
    begin
      if :NEW.MVR_RATING is null then
        select SEQ_MVR_RATING_SCALE.nextval into :NEW.MVR_RATING from dual;
      end if;
      if :NEW.ENTERED_BY is null then
        :NEW.ENTERED_BY := FN_GET_USER(nvl(v('APP_USER'),user));
      end if;
      :NEW.ENTERED_ON := SYSDATE;
    end;
    /Without giving you a complete tutorial on triggers, just note the call to SEQ.nextval. That's what retrieves the next value from the sequence and tells the DB engine to increment the sequence value. The next time it is called, it will then be a different value.

  • Change Column Header / Column Background color based on a value in a specific row in the same column

    SSRS 2012
    Dataset (40 columns) including the first 3 rows for Report layout configuration (eg: the <second> row specifies the column background color).
    Starting from the 4th row, the dataset contains data to be displayed.
    I would like to change the background color of the ColumnHeader/Column based on the value in the same column in the <second> row.
    How can I accomplish the this requirement? (this must be applied for all the columns)
    Thanks

    Hi Fasttrck2,
    Per my understanding that you want to specify the background color of all the columns/column header based on the value in one special column of the special row, right?
    I have tested on my local environment and you can add expression to condition show the background color in the columns properties or the column header properties.
    Details information below for your reference:
    Specify the background color in the Column header: you can select the entire column header row and in the properties add expression in the Background color :
    If you want to specify the background color for the entire column, you can select the entire column and add the expression, repeat to add background color for other columns.
    If you want to specify the background color based on the value in the specific columns and row, you can create an hidden parameter to get the list of values from the  specific column, specify the Available values and default values by select "Get
    values from a query", finally using the expression as below to get the specific value you want:
    Expression(Backgroud Color):
    =IIF(Parameters!Para.Value(1)="1221","red","yellow")
    If your problem still exists, please try to provide some smaple data of the report and also the snapshot of the report structure to help us more effective to provide an solution.
    Any problem, please feel free to ask.
    Regards
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • Configure replicas based on existing encrypted DB

    I am researching SQL Server Always On. I have put together a configuration that uses an existing DB which is encrypted. It is NOT a TDE DB. I cannot find any examples of how to configure this setup and I'm having an issue where my secondary replica cannot
    be constructed properly because I cannot restore the DB Master Key on the replica. I get a cannot perform operation on a read only DB. I've tried to find information about how to configure a Always On setup with an encrypted DB but could not find anything.
    MS has a page where they refer to encrypted DB in a Availability Group - but don't talk about it at all. They refer to working with a decrypted DB (which I don't have). 
    http://technet.microsoft.com/en-us/library/hh510178.aspx
    I was thinking that I could fail-over to the secondary but it fails. Not sure why but I'm thinking it may be because the two DB's are not exact. 
    What do I need to do explicitly to get this to work?
    Peter

    Peter,
    I'm not sure if that specific to azure, but the DMK is an object in the database. You don't have to restore it.
    "Please create a master key in the database or open the master key in the session before performing this operation."
    I see this, but you posted this:
    No - not using the SMK. Just using a DMK and certificate
    which are contradictory. If you were only using the DMK then you shouldn't have this problem. So either you're using the SMK to automatically decrypt the DMK and so on or azure doesn't support this.
    I can easily do this (granted, not using azure) with and without the SMK (if I restore the SMK previously as I stated before).
    Repro:
    CREATE DATABASE EncryptedDB
    GO
    USE EncryptedDB
    GO
    CREATE TABLE EncryptedData
    ID INT IDENTITY(1,1) NOT NULL,
    EncryptedValue VARBINARY(8000) NOT NULL
    GO
    IF NOT EXISTS( SELECT 1 FROM sys.symmetric_keys WHERE name = '##MS_DatabaseMasterKey##')
    CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'My$trongP@$$'
    GO
    CREATE CERTIFICATE CertToEncryptSymKey
    WITH SUBJECT = 'Certificate To Encrypt The Symmetric Key.'
    GO
    CREATE SYMMETRIC KEY SymEncKey
    WITH ALGORITHM = AES_256
    ENCRYPTION BY CERTIFICATE CertToEncryptSymKey
    GO
    OPEN SYMMETRIC KEY SymEncKey DECRYPTION BY CERTIFICATE CertToEncryptSymKey
    INSERT INTO EncryptedData(EncryptedValue) VALUES (ENCRYPTBYKEY(KEY_GUID('SymEncKey'), N'Super Secret!', 0, ''))
    CLOSE SYMMETRIC KEY SymEncKEy
    -- restore database, etc on another instance, setup into AOAG
    SELECT * FROM EncryptedData
    SELECT * FROM sys.symmetric_keys
    OPEN MASTER KEY DECRYPTION BY PASSWORD = 'My$trongP@$$'
    OPEN SYMMETRIC KEY SymEncKey DECRYPTION BY CERTIFICATE CertToEncryptSymKey
    SELECT *, CAST(DECRYPTBYKEY(EncryptedValue, 0, null) AS NVARCHAR(4000)) FROM EncryptedData
    CLOSE SYMMETRIC KEY SymEncKey
    CLOSE MASTER KEY
    Sean Gallardy | Blog |
    Twitter

  • Error When Creating/Inserting New Marketing Attribute Value

    Merry Christmas & Happy New Year,
    Need help here, when I create/insert new marketing attribute value in existing marketing attribute, I encounter the following error "The values currently maintained lead to inconsistencies in the database".
    In the detail error, it specifies that I was trying to change existing attribute which is not true.
    Initially i thought it was authorization issue, but when i do the same procedure in CRM GUI, it works fine, only from Web UI then i encounter the problem.
    Any lead is really appreciated.
    JD

    Hi Robert,
    thanks for the info, we did implement the note but still having the error.
    we also have implemented following notes but it still does not solve the issue yet.
    0001486409 Incorrect counting in CRM_MKTPFCHR_CHECK_STRING_BW
    0001490425 Nonsensical values for marketing attributes
    0001491491 Field DATUV in AUSP for newsletter scenario
    0001499712 Marketing  Attributes are not saved properly in WEB UI
    0001509448 MKT ATTR:Save value for marketing attribute impossible
    0001531447 Problems in CL_CRM_BUIL_MKT_ATTRIB~READ

  • Autosuggest based on Select Value

    I'm in the process of reworking a pre-existing form and
    related queries that
    allows a person to search for my agency's services based on
    City, County or
    ZIP Code.
    We have two fields: locationtofind (text field) and
    locationtype (select
    containing the above values, with City being the default)
    What I'd like to do is populate the autosuggest with values
    based on the
    value of the currently selected locationtype. How do I pass
    or bind the
    currentvalue of locationtype to the autosuggest call to a
    CFC?
    Texas has a huge number of place names in addition to its 254
    counties, so a
    dynamic search using a cfc as you type query is a must.
    Any examples would be quite helpful.
    Thanks in advance,
    Michael Brown
    Texas Department of Aging and Disability Services

    I'm in the process of reworking a pre-existing form and
    related queries that
    allows a person to search for my agency's services based on
    City, County or
    ZIP Code.
    We have two fields: locationtofind (text field) and
    locationtype (select
    containing the above values, with City being the default)
    What I'd like to do is populate the autosuggest with values
    based on the
    value of the currently selected locationtype. How do I pass
    or bind the
    currentvalue of locationtype to the autosuggest call to a
    CFC?
    Texas has a huge number of place names in addition to its 254
    counties, so a
    dynamic search using a cfc as you type query is a must.
    Any examples would be quite helpful.
    Thanks in advance,
    Michael Brown
    Texas Department of Aging and Disability Services

  • Yield of portfolio based on accounting values?

    Hello,
    I want to ask if there exists any possibility to measure yield of portfolio from accounting values. Actually I am trying to find information about functionality of Accounting Analyzer in available sources but I am not sure, if it includes yield based on accounting values.
    Thank you for your response.
    Regards,
    Maria

    Hi,
    Specify a  variable(say Flag) in the GlobalData and then in the Code Initialization section Check whether your table is having data or not and accordingly set the variable (here Flag to "X" if table is having data).
    In the Layout use this variable(check if flag == "X" )  to decide the visibility of the Subforms S1 to S4 .
    Thanks.
    UmaS.

Maybe you are looking for

  • Error calling a Tuxedo service from WLS

    We have WLS 6.1 connecting to Tuxedo 8. We try to run the example application simpapp. We connect thru the toupper EJB to Tuxedo. It connects succesfully, but when we execute the tpcall we get this error: * Tuxedo side: 123313.localhost.localdomain!G

  • Intercompany billing: can price date be taken from stock transport order UB

    Hi, I have an issue and I think that I'm not the first person who has this problem. We are working with stock transport orders (UB) to relocate goods from one plant to the other (different company codes). We have some troubles with different prices i

  • Change layout from Dreamweaver CC to CS6 (Was: layout...)

    how do i change the layout from dreamweaver cc to dreamweaver cs6. i need to use cs6 for class. thx.

  • Can't drag across

    I'm trying (unsuccessfully) to exchange music files between my iMac and my laptop. Both machines are showing [in iTunes] each others libraries however when I try for example on the laptop to drag a song over from the iMac's library it doesn't drag ac

  • Having problem with update new os4.3.2 of ipod touch G4

    Dear All can anyone help to solve my problem, that i can't update lastest version OS 4.3.2 of Ipod Touch, because now i have problem on screen display by using os4.3  as i have tried many times but i can't get the lastest one. so please give me sugge