Interface - value in the target field change on insert/update

Hello

For an interface, I use the module knowledge - incremental update of the IKM Oracle.

He is running in insert / update of fashion.

In the target of the interface table, there is a the target field (column) that I want to give a value based on exploitation.

If the file is new and inserted into the target table - the field in the record should get the value "INSERT".

-Similarly, if an existing record in the target table is updated - the field of the record should get the value "UPDATE".

Any ideas on how you can do it?

Thank you.

You just need to customize your KM. Its can be done in many ways. Here is one approach.
Change the existing lines of your update. Then change as below. But make you your own customization without hard coding.
Here is codes, the fraction of the total code used in the KM steps.

){"?>(
     <%=odiRef.getColList("", "T.[COL_NAME]", ",\n\t", "", "((UPD AND (NOT UK) AND (NOT TRG)) AND REW)")%>
*, COL_FLAG. *
) =
(
Select < %="odiRef.getColList" ("«,="" « s.="" [column] », »,="" \n\t\t\t »,="" « »,="" « ((upd="" et="" (pas="" uk)="" et="" (pas="" trg))="" et="" rew) »)="" %=""> *, "UPDATE."
of< %="odiRef.getTable" ("l",="" "int_name",="" "w")="" %="" >="">
where< %="odiRef.getColList" ("",="" "t.="" [column]="S." [column]",="" "\n\t\tand\t",="" "",="" "uk")="" %="">
)

Similarly for new lines inserted

insert into <%=odiRef.getTable("L","TARG_NAME","A")%> T
(
     <%=odiRef.getColList("", "[COL_NAME]", ",\n\t", "", "((INS AND (NOT TRG)) AND REW)")%>
     <%=odiRef.getColList(odiRef.getColList(",", " ", "", "", "((INS and !TRG) and REW)"), "[COL_NAME]", ",\n\t", "", "((INS AND TRG) AND REW)")%>
*, COL_FLAG. *
)
Select< %="odiRef.getColList" (" »,="" « [column]="" «, »="" \n\t »,="" « »,="" « ((ins="" et="" (pas="" trg))="" et="" rew) »)="" %="">
< %="odiRef.getColList" (odiref.getcollist="" («, »,="" "«,="" « »,="" « »,="" « ((ins="" and !="" trg)="" et="" rew) »),="" « [expression]="" «, »="" \n\t »,="" « »,="" « ((ins="" and="" trg)="" et="" rew) »)="" %="">*, "INSERT."

of <%=odiRef.getTable("L","INT_NAME","W")%> S

It should work. Your target must have the column as "COL_FLAG" and do nothing for this column in the map interface.
Thank you

Tags: Business Intelligence

Similar Questions

  • Can I directly change the value of the dist_id field in the database?

    When I tried a url created by gblinkapp, Adobe Digital Editions gave me an E_LIC_NO_DISTRIBUTION_RIGHTS error.

    I'm looking on the database:

    • I have 2 records in the table Distributor , first integrated and mine.
    • In the distributionrights and distusednonce tables, the value of the dist_id field (which is the primary key of table Distributor ) is always the "built-in" ID

    I guess that ACS3 to ACS4 migration was made prior to the addition of our real Distributor...

    Your quick start guide explains clearly that "the integrated distributor" cannot be used to distribute the books.

    If can I update the dist_id directly in the tables distributionrights and distusedonce with the dist_id of our distributor without future problems in ACS4 value?

    If this is not the case, how can I change the distributor of my books safe?

    Thank you

    You do not want to delete the record for the integrated Distributor, because that will cause problems and given what you have described the probably won't solve the problem.

    The most common cause of E_LIC_NO_DISTRIBUTION_RIGHTS is because you try to make a loan (URL with action = enterloan instead of action = enterorder), when you have not created a right distribution of type "ready".  In the administration console, if you have already created a right distribution of type buy, then in the inventory tab, with the Distributor, then the resource selected, you just need to click on the icon "+" next to the distribution rights and to create a new right 'ready' type distribution  If your problem is that you did not create the distribution rights for the Distributor, and then you can drag the resource on the distribution server to create a first 'buy' distribution right.

    Alternatively, you can also use DistribTool.jar to create the appropriate distribution right.  Documentation for this tool is in the documentation of source sample.

    However the DistribTool and AdminConsole end up doing the same thing, which is to use the ManageDistributionRights admin web service endpoint to create a new right of distribution.  If these tools are not to your liking, you're probably better choose a writing tool in your preferred language to make calls to services web admin, so that you can make it work as you want it to work instead of the DistribTool way or AdminConsole works.

  • Get the field to remain Virgin until the user enters the value in the previous field used in the calculation

    I work on a PDF form and am stuck on one of my calculations. There are two fields 'desired Start Date", which is a date entered by the user. The "desired end" date is one year from date entered by the user. I figured out - however, before the user enters a date, I want this field remains empty. Currently, it fills with 01/00/000. How can I get this field to calculate not unless a date is entered by the user? So far, I tried this but can not get the blank to stay:

    If the field 'Desired Start Date' is empty, leave 'to' field blank

    var myStartDate = new Date (this.getField("Desired_Effective_Date").value);

    If (((myStartDate == 0) & & (getField("myStartDate").valueAsString = "")) {event.value = "";})

    If the field "Desired Start Date" is an effective date, use the date to calculate one year after the date of entry.

    }

    else {this.getField("to").value = util.printd ("mm/dd/yyyy", new Date (myStartDate.getFullYear () + 1, myStartDate.getMonth (), myStartDate.getDate ()))}

    Try the following than the calculation script custom field "to".

    Get the value of the date field beginning

    var sStartDate = getField("Desired_Effective_Date").valueAsString;

    If the start date field is not empty...

    If {(sStartDate)

    Converts a date in a date object string

    Kai = util.scand ("mm/dd/yyyy", sStartDate);

    Add a year

    oDate.setFullYear (oDate.getFullYear () + 1);

    Set this field to the calculated date value

    Event.Value = util.printd ("mm/dd/yyyy", anyway);

    } else {}

    This field blank because the input field is empty

    Event.Value = "";

    }

    You may need to change the date format "mm/dd/yyyy", I used to match the formats of date fields.

  • How to assign the value to the text field dynamically

    Hello

    I created a form that accepts input from the front desk.  As soon as I select ACCOUNT_CODE using LOV, I would like to define a DISPLAY only field INSTALMENT_AMOUNT with values that is available in another table based on the value of the ACCOUNT_CODE field.

    I already have the query to retrieve the details.  However, I wanted to know how to proceed.

    I created 'point page' INSTALMENT_AMOUNT in the form.  On this point in relation to a created "computation".  But the value is been showed that when I open an existing record for editing.  Not during new save when I try to create.  I would like to fill the value, when I create a new record and after selection of the ACCOUNT_CODE value.

    Receipt.png

    Thank you

    -Anand

    anand_gp wrote:

    I created a form that accepts input from the front desk.  As soon as I select the ACCOUNT_CODE using LOV, I would like to define a DISPLAY only field INSTALMENT_AMOUNT with values that is available in another table based on the value of the ACCOUNT_CODE field.

    I already have the query to retrieve the details.  However, I wanted to know how to proceed.

    I created 'point page' INSTALMENT_AMOUNT in the form.  On this point in relation to a created "computation".  But the value is been showed that when I open an existing record for editing.  Not during new save when I try to create.  I would like to fill the value, when I create a new record and after selection of the ACCOUNT_CODE value.

    Events in response to actions of the user in the browser at run time are implemented using dynamic measurements.

    In this case, use a dynamic action change in the P270_ACCOUNT_CODE article, with action set the value by specifying P270_ACCOUNT_CODE in the elements of the Page to send and your source of SQL as the SQL statement.

  • Web page open based on the value of the text field

    I want to open a web page that is based on the value of a text field.  How to bind the value of a text field to a command which will open the web page?

    For example, the value of the text field is: 8 t - EXT

    and the web page I want to open when you press a button is: http://hqms/doc.asp?dn=8T-EXT

    As you can see that the 8 t - EXT is something that a person enters the form and is what is needed to open the web page.  The other text in the link of the webpage is always the same.

    Thank you

    Hello

    In the click event of the button, place the following JavaScript code:

    if (TextField1.rawValue !== null) {
         var vURL = "http://hqms/doc.asp?dn=" + TextField1.rawValue;
         app.launchURL(vURL, true);
    }
    else {
         app.alert("Dear user, please put a code in the text field. Thank you!");
    }
    

    You need to change the object references based on your shape.

    Niall

  • cfformitem type = &amp; quot; script &amp; quot; : how to set the value of the hidden field?

    I have a simple test form that contains a cftree and some fields of seizure/hidden. Whenever a tree node is selected, I want to change the values of the fields of entry/hidden to some node is selected. Pretty simple, but I can not understand how to change the values of the hidden fields.

    Load the form, select "ItemA" and click on submit. Do not change the values of the hidden form fields. They are always "not defined". What is the correct syntax to change the value of the hidden field?


    The correct syntax is

    myForm.theID = 'theID = "+ valueString;

    Ken

  • Set a default value in the target?

    Hi experts,

    How can I set a default value in the target data store that I'll use in the interface?

    Hello

    Open your store of target data column, click the Description tab and the default value is .

    Then in the interface, select this column and go to run on the TARGET.

    Implementing tab say, odiRef.getColDefaultValue)

    Thank you
    G

  • Initial value of the checkbox field is not affected.

    Hello

    I have a custom form with 2 fields, which is a check box which is below the values
    Value when checked: 1
    Value when disabled: 0
    Mapping of other values box: checked

    and the other is a text field. Please insert text fields field data into the table db that are checked.

    Iof displayed the Web file number is 10.


    I use the code in the trigger of the COMMIT BUTTON to save data in the table below. that is, I'm insertion of the value of the text field in table for the check box that is checked

    GO_BLOCK ("CHANNELS");
    premier_enregistrement;
    LOOP
    IF: CHANNELS. CHECK = 1 THEN
    INSERT into...
    WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";
    NEXT_RECORD;
    END LOOP;
    COMMIT;
    END;


    The problem is the value of the checkbox is always null and records are not get inserted into the table. Y at - it elsewhere, that we have to specify the initial value of the box. Not sure why the value of the checkbox becomes void even if the ix checked checkbox.

    Thank you
    Didi.

    What you have listed for the property of the initial value of your box?

    Craig...

  • How to restrict user access to must enter a value in the mandatory fields

    Greetings!

    I had a personal information form. I want to restrict the user to enter values in all areas of mandatory for example fields (username, date of birth, etc.)
    How to limit the search user must enter a value in the mandatory fields

    Create dynamic actions for each of the fields, or you can create javascript.
    for example create dynamic action 1 with event as tune-up losing select the item and the condition as NULL and action as alert and type the message you want to display in the text section.

    Thank you
    Mehabub

  • Do 1 field equal to the value of the 2 fields.

    How to make 1 field equal to the value of 2 text fields.

    I've got text field 1 and I need to match the value in the address 1 field and the address field 2.  Essentially, I need what is in the address 1 field and 2 combine into a single field, the text field 1.

    Any suggestions?

    Thank you

    When in a field and trying to reference it, to use the «event.value "to access the value property of the field.» The value of the subject field is not updated until that leaves him the ground. I would use:

    event... value = this.getField("FL052").value + this.getField("FL053").value;

    For the calculation script customized.

  • Get the value of the title field

    My question is simple. Here's my scenario.

    I have a check for profile, with an editable title field and a list of options. The user selects a value in the option list and entered a title. When he submits the form, the title of the content check-in must be derived from the value of the option list + the value of the field title. The derivative title must be the concatenation of the value of the option list, and the value of the field title.

    My question is how to get the value of the field title using the script of the OIDC? I have a rule with the field of dDocTitle and its derivative field, I have an idoc script that displays the value of the option list in the spin-off title field. I only need to concatenate the value of the editable field title entered by the user.

    Thank you. I use UCM 10 g.

    This can be done with rules and profiles of the school boards and derived values.

    If the user enters a title in the field of dDocTitle (this is mandatory) and if you have another field of metadata with a menu drop-down (as conceptual dDocType) you can use the Configuration Manager (rules and profiles) take the value of dDocTitle and dDocType and when checked (it not shown to the user after logging) she'll concatenate.

    in the custom box (you may need to do this because of the wrong inserts quotes with our variables) make sure that it looks like this
    <$dprDerivedValue=dDocTitle &="" ddoctype$="">

    Notes that may be of interest
    How can define you a value derived in a rule using Idoc Script to call a service? (Doc ID 833953.1)
    Who wins: rule or a set of default metadata about a file? (Doc ID 798653.1)

  • Change the value of the numeric field

    Hello

    I created a form with three numeric fields for a list of prices.

    They have a predefined value.

    Price.01 = 600

    Price.02 = 500

    Price.03 = 1200

    I want to create buttons to change the values for numeric fields.

    for example

    var price = this.getField("price.01").value;

    price = 750;

    This code should change the value of the field price.01 to 750, but nothing happens.

    The second task is very simple. Calculate the sum of the three numeric fields.

    I created a fourth field and calculate to the tab, I chose in the AutoSum.

    Yet once, nothing happens.

    Am I missing?

    A screen refresh function should be added?

    any help would be appreciated

    (using acrobat 9 pro)

    Regarding the first question: you need to access the property value directly, as follows:

    this.getField("price.01").value = 750;

    With regard to the second question: is there any error messages in the console (Ctrl + J) JS? All fields are set up in the form of fields numbers?

  • Data clean on a numeric value in the text field

    Hello team,

    There is a field called 'turnover' in our Eloqua instance. It is a text field, but contains mostly numeric values synchronized in the same field of SFDC. The SFDC field is numeric.

    I am trying to write a program of standardization of data that uses the "Annual sales" value to update another field, "standardized annual income", with the value appropriate for example Strip $0 to $5 M, $5 - $10 M, $10 / $20 M...

    I created a rule to update that search values:

    • between 1 and 5000000 "turnover" and updates the "standardized annual income" field of $0 à $5 M
    • between 5000001 and 100000 in the "Annual income" and updates the "standardized annual income" field $5-$10 M
    • and so on...

    However when I test it I get the correct value in 'annual standardized income. " I also tried using filters to make contacts with the "annual income" values between 0 and 5000000 but I get all kinds of values outside this range.

    Can someone tell me where I'm wrong? Is it because the data type of the field 'Turnover' is the text rather than digital? I guess I could create a new numeric field for "Annual income", write values existing in this area and change the SFDC integration but I would avoid it if possible. If anyone has any bright ideas, I'd love to hear them.

    Thank you

    James

    For anyone interested, I got the answer from the Support. As it is established as a text field that eloqua is trying to make an alphabetical "between" rather than a digital "between". As it is not possible to change the data type of a field, I need to create a new digital field, export the data to the existing field (as well as email address) and upload again to the new field.

  • Value of the text field delete after click

    There is a text field with the value "type your name". When click in the text field, the value will be automatically deleted. We type "Adobe", then click on outside. If you still want to type 'cycle' after 'Adobe' (no delete Adobe or retype "adobe")

    Is this possible? How can I get?

    Hello

    The other way to do this is to go to object > palette on the ground and set a display model of the null state.

    See page 2 of the form example here: http://assure.ly/ewrLMo.

    At its most simple requires no script:

    In our example we have script in events enter and exit to change the police, but this step is entirely optional.

    Hope that helps,

    Niall

  • Value of the text field on a form disappers when clicking on an intem line in one grid other than line 1.

    Essentially we are dumping a log in a grid file 'go block '.  As part of the form, we'll add two variables (in the same datablock) like other variables of the grid.  These descriptive variables are order and the line number and are located above the grid.  When the user clicks on any other topic but line 1 these values are empty.  If they click line 2 they are virgins but if they click back online a those values reappear.

    Somehow, they relate to thoughts of one line - all about what I'm doing wrong.

    Thanks in advance.


    Dear Sir

    The value that you assign is the first record only. This is why his watch when're it in the first record. How you assign values to the block (grid) of detail? If you use to insert lines, then you must write the code to assign values to these fields inside the loop.

    Manu.

Maybe you are looking for