How to use expressions to check if a value is containted in another table.

Hello,
I have a flat Material table ("Material_table" with a Mat_ID) and a main table that stores MAT_ID and (e.g) Manufacturer. I DO NOT want to use a lookup table (since I don`t want to use the drop-down boxes), but I want to create a (simple) validation that checks, if the MAT_ID that is entered into field MAT_ID in the main table is contained in the Material table.
This serves as a simple "foreign key" check, checking if a value into a table can be found in another table.
Can anyone post the code that has to be written into the validations-Editor.
The expression in the main table could look something like:
Logically:
Check IF (MAT_ID IS_CONTAINED_IN(Material_table[MAT_ID]) then return true
or something like:
HAS_ANY_VALUES(MAT_ID,Material_table[MAT_ID])
Thanks a lot!
(I couldnt find any solution for that in the forums - We are using MDM 5.5. SP6)

See thread: "How to create a validation that access another MDM-Table?" in this forum.

Similar Messages

  • How To Use PMD Code Checker in Jdeveloper 9

    Hai
    Please Any one tell me How To Use PMD Code Checker in Jdeveloper 9
    Thanks

    Timo
    You Checking file with PMD in **Jdeveloper** possible in jdev 10.1.3
    for the earlier versions you told me to use command prompt
    that's why when iam checking my file with pmd the output is like the below:
    D:\jdev9\OAF\jdevbin\jdev\lib\ext\pmd-bin-4.2.5\pmd-4.2.5\java14\bin>pmd D:/satyas/Test.java xml rulesets/unusedcode.xml -debug
    In JDK 1.5 mode
    Loaded rule UnusedPrivateMethod
    Loaded rule UnusedPrivateField
    Loaded rule UnusedFormalParameter
    Loaded rule UnusedLocalVariable
    Processing D:\satyas\Test.java
    Could not find class Test, due to: java.lang.ClassNotFoundException: Test
    <?xml version="1.0" encoding="UTF-8"?>
    <pmd version="4.2.5" timestamp="2010-08-24T19:02:07.019">
    <file name="D:\satyas\Test.java">
    <violation beginline="5" endline="5" begincolumn="22" endcolumn="22" rule="UnusedLocalVariable" ruleset="Unused Code Rules" class=
    "Test" method="main" variable="i" externalInfoUrl="http://pmd.sourceforge.net/rules/unusedcode.html#UnusedLocalVariable" priority=
    "3">
    Avoid unused local variables such as 'i'.
    </violation>
    <violation beginline="14" endline="14" begincolumn="23" endcolumn="32" rule="UnusedPrivateMethod" ruleset="Unused Code Rules" clas
    s="Test" method="myMethod" externalInfoUrl="http://pmd.sourceforge.net/rules/unusedcode.html#UnusedPrivateMethod" priority="3">
    Avoid unused private methods such as 'myMethod()'.
    </violation>
    </file>
    </pmd>

  • How to use dreamweaver to check scripts.

    I am both new to scripting and in using dreamweaver, I n
    eed to be able to copy an asp code and paste in dreamweaver and c
    ontinue with it, can anyone please help me on how to do this? , I a
    m testing dream weaver cs4

    I don't understand your subject line, "How to use dreamweaver to check scripts".  Can you explain what you mean by this?
    >I need to be able to copy an asp code and paste in dreamweaver and
    >continue with it, can anyone please help me on how to do this?
    You just copy the code from one page and paste into another. If you are having problems, you need to be more specific about what is not working.

  • How to use utl_ftp package to transfer files from one system to another

    Hi all,
    How to use utl_ftp package to transfer files from one system to another using plsql procedure .
    I failed to find the appropriate document ,kindly help me .
    Thanks,
    P Prakash

    prakash wrote:
    I am sorry tell you, this blog is not enough to for me.It's not a blog, it's Chris' website where you download the package from. Once you download the package and unrar it, then the package spec gives instructions (and I think there's instructions on how to install it too).
    Kindly let me know if there is any oracle documentation for this .It's not an Oracle created package, it was created by Chris. It's based around the UTL_TCP package if you really want to get into the nitty gritty of how it works, but I don't think you do.

  • How to use execute immediate for character string value 300

    how to use execute immediate for character string value > 300 , the parameter for this would be passed.
    Case 1: When length = 300
    declare
    str1 varchar2(20) := 'select * from dual';
    str2 varchar2(20) := ' union ';
    result varchar2(300);
    begin
    result := str1 || str2 ||
    str1 || str2 ||
    str1 || str2 ||
    str1 || str2 ||
    str1 || str2 ||
    str1 || str2 ||
    str1 || str2 ||
    str1 || str2 ||
    str1 || str2 ||
    str1 || str2 ||
    str1 || ' ';
    dbms_output.put_line('length : '|| length(result));
    execute immediate result;
    end;
    /SQL> 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
    length : 300
    PL/SQL procedure successfully completed.
    Case 2: When length > 300 ( 301)
    SQL> set serveroutput on size 2000;
    declare
    str1 varchar2(20) := 'select * from dual';
    str2 varchar2(20) := ' union ';
    result varchar2(300);
    begin
    result := str1 || str2 ||
    str1 || str2 ||
    str1 || str2 ||
    str1 || str2 ||
    str1 || str2 ||
    str1 || str2 ||
    str1 || str2 ||
    str1 || str2 ||
    str1 || str2 ||
    str1 || str2 ||
    str1 || ' ';
    dbms_output.put_line('length : '|| length(result));
    execute immediate result;
    end;
    /SQL> 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
    declare
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 6

    result varchar2(300);Answer shouldn't be here ? In the greater variable ?
    Nicolas.

  • How to use the AUTHORITY-CHECK in ABAP

    I am a security guy but am trying to understand how the AUTHORITY-CHECK works. I have read the help on it but it doesn't answer to my understanding. I want a check in a report so that no matter what the user selects the program goes out and checks the authorization in the users master record and only displays what he has access to. I am sure this is basic but I am not a programmer.
    Thanks

    Hi Greg,
      Basically a AUTHORITY-CHECK is a programmatic way to check a auth object a user has.  This is only as good as the person writing the code makes is.
    Here is a basic example of how it could work.  Lets say you have auth objects for users that limit them to see company code. User A can see cc 10, User B can see cc 20 and user C can see both.
    In the code the programmer would have to first do the authcheck to see what CC the user has access to.  Then they would have to limit his reporting based on the results of the authority check.  So they might do it by saying SELECT * FROM XYZTAB WHERE COMPANY CODE = AUTHCC
    This is what I think you are looking for.  There are other ways to use the auth check.  You can do a check and end the program with a message if they don't have authorization. 
    If you need more info, let me know
    John

  • How to use any cell as an static value

    Hello,
    I don't know if it is possible to use any cell as an static value, same as $ in excel, E$2$.
    I need to divide all the values of a table with a unique value of a cell. In excel is when you put $E$2, this make a cell an static value.
    This is possible en Web Intelligence?
    Best Regards
    SU

    Hello Srivatsa,
    Thanks for your response. An example could be the sum and divide by the sum (to calculate participation) of a table.
    2
    2
    3
    S=7
    Then I want to divide 2 by 7, 2 by 7 and 3 by 7. The Sum (in this case 7) is the static value, how can I use it for operate all the registries?
    To have,
    0.29
    0.29
    0.43
    Thanks & Regards
    SU

  • How to use one variable as a default value for another variable?

    Hi Experts,
    Is it possible to use one variable as a default value for another variable?
    For example:
    Variable 1 = current calendar year month
    Variable 2 = mandatory input ready variable for calendar year month
    I want to use variable 1 as default value for variable 2, but also have the ability to change the month if required.
    Thanks!
    Kathryn

    u can use replacement path variable
    in that case u can replace the values of 1 variable with the another variable...
    but  u cannot do this setting
    u cannot make variable 2 as mandatory
    u cannot enter value for variable 2
    because by default it will take the value of variable 1
    u have to make follow settings
    variable 2
    name , technical name
    processing by = replacement path
    infoobject = ocalmonth
    next tab
    replaced by another variable
    variable name
    offset start , offset lenght
    save and hit okey

  • How to use Spry.Utils.extractParamsFromForm to get value of a form element

    Can we use Spry.Utils.extractParamsFromForm to get value of a
    form element ?
    I tried this
    quote:
    var cid =
    Spry.Utils.extractParamsFromForm('adForm','category');
    Here the form name is adForm and category is an select item.
    This gives me error
    quote:
    elements.join is not a function
    Any idea on this guys.

    Can we use Spry.Utils.extractParamsFromForm to get value of a
    form element ?
    I tried this
    quote:
    var cid =
    Spry.Utils.extractParamsFromForm('adForm','category');
    Here the form name is adForm and category is an select item.
    This gives me error
    quote:
    elements.join is not a function
    Any idea on this guys.

  • How to calculate some value that referring to another table

    Hi...
    Need help asap
    The questions are :
    Q1 : In Microsoft Excell, we can take value from one cell and use it to another cell.
    How about in BO, if we want to take value (ex. 93.75) from the other table and use or refer the value that we want to to another table (just use the value from another table)
    Just for information, we want to use the number (93.75) in another function. (if <93.75, then........) and the value (93.75) is a result from another function or calculation.
    Q2 : How to SUM from one table and show the result to another table.(We want to use the result of SUM for another calculation in different table.)
    Thanks for your kind help.

    Eva,
    In answer to your question about using a cell from report (block) as a value to be manipulated within another block, will be tricky unless you can employ the "Merge Dimensions" technique.  Working in the blind and trying to visualize what you are trying to do is very difficult, so to speak in general terms, you will have to determine a best way to merge dimensions, then build specific local variables to "flag" and extract succinct values from one data provider, and then use that local variable in applying it to the other block.  This will take some experimentation and testing before you can feel confident and get the hang of it.
    On the other hand, if you know what the threshold value is that you want to apply (like for instance 91.75), then you can either "hardcode" that in your formula(s), or build a prompt in your report that captures this tidbit from the user when the report runs, and using the UserResponse function you should be able to calculate what it is you want to do.
    Good luck and post more details (specific tables, columns, and manipulations) and perhaps some one can post a suggestion on how to best execute your report.
    Thanks,
    John

  • How to use Expression Edit in the LabVIEW control (teststand category)?

    Hi All,
    I am developing the teststand specify module using LabVIEW. I found that is Expression Edit control in the Labview Controls pallete. does anyone have any example?
    I have enabled the expression browser button but I dont know how to link it to the teststand. Pls advise.
    Thanks
    - toko -

    Hey Toko,
    You basically need to refer the button to the sequence context.  For a great description of this and an example, please refer to this previous discussion forum:
    http://forums.ni.com/ni/board/message?board.id=330&message.id=10609&requireLogin=False
    Thanks,
    Andy McRorie
    NI R&D

  • How to use expression script to trip off all trailing non-numeric character

    Hi,
    I used JDev11.1.1.2.
    Now a field value like “7.5.3.10BQF”, “7.8.2.XFP”, and another dynamic LOV depends on this value to filter, so we want to trip off all trailing non-numeric characters (including whitespace and periods), for example to “7.5.3.10BQF”, we will filter LOV using "%7.5.3.10%",for "7.8.2.XFP", we will filter LOV using "%7.8.2%".
    But I don't know how to write groovy expression to implement this function.
    Any advice will be great help.
    thanks,
    zeroxin

    Hi,
    The third syntax you used is correct i.e.
    DW_CRF.PKG_LPS_CRF_LOAD_TRANS.sp_load_target(''LOAD_CRF'', ''LOAD_LOAN_TRAN'', CURRENT_TIMESTAMP, NULL);
    Alternatively you can use
    DW_CRF.PKG_LPS_CRF_LOAD_TRANS.sp_load_target(''LOAD_CRF'', ''LOAD_LOAN_TRAN'', CURRENT_TIMESTAMP, '''');
    all the other calls give syntax errors that are expected. The third call is giving an application error which you will need to look into (maybe starting at "DW_CRF.PKG_LPS_CRF_LOAD_TRANS", line 958). One thing that may help clarify things is if you were to switch to naming your parameters e.g. target_name=>''LOAD_CRF'' since that helps clarify exactly what parameter is called with which value.
    Hope this helps,
    Ravi.

  • How to use express as a wireless extender ?

    One last attempt before it goes in the bin.....
    How do I setup and use the airport express as a wireless extender ?
    I have a netgear dg384g wireless router, connected via a wire to a imac.
    The router has a wireless sid on it called "ebony".
    Upstairs I have a mac mini ( intel 1.6GHz ), which I would like to connect to the wireless router network.
    Unfortunateley the mac mini seems to have a wireless range of about 10cm !! Everything else ( an Apple tv, imac, pc laptop, wii, gameboys ) works with the wireless network from upstairs apart from the mac mini.
    What I want to do is place the airport express upstairs and connect the mac mini to it, either wirelessley or wired.
    I have run through the airport express setup using the imac and the mini using all combinations of options with no success.
    The install and instructions seems very orientated to assuming that you have an airport extreme.
    Does anyone know how to setup the express as a wireless extender (WDS) on a netgear wireless router ?
    Thanks.

    First, I would ascertain, whether or not, the Netgear supports DD-WRT or if the manufacturer's supports WDS on this model. If the answer is no for either of these, then there would be little chance of success trying to create a WDS between these two.
    Unfortunately, I have not come across any specific WDS set up instructions between these two devices on the Internet to offer, as most likely, no one has been successful in making this work.
    If you like examples of other WDS pairings with the AX, take a look at the following links:
    o http://discussions.apple.com/thread.jspa?messageID=607414
    o http://www.belkin.com/support/kb/kb.asp?a=2814
    o http://rgbdream.com/?p=44
    o http://ryanschwartz.net/2004/08/05/airtunes-airport-express-and-the-wrt54g

  • How to use GPIB communication check in LabVIEW

    There is one power supply in our office from Agilent. How to develop software for that Power supply using LabVIEW we should be able to change the
    voltage via GPIB interface.

    If you have the GPIB commands for your Agilent device in its product manual and a GPIB card, just go to Block diagram functions-> instrument i/o-> gpib and you have a set of GPIB functions.
    Also look at attached VI ( taken from labview examples shipped with labview) to get an idea on how to do GPIB write
    Regards
    Dev
    Attachments:
    LabVIEW_GPIB.vi ‏44 KB

  • How to use UCCHECK to check unicode ?

    Hello,
    We need to pass unicode soon so we are executing transaction UCCHECK in our system.
    We don't know really what to put in the selection screen so we put * in all parameters and set checkboxes in order to take the maximum objetcs possible.
    We saw the documentation but it is not clear for us.
    We obtain a very long list of programs in error or in warning, and some other correct.
    Could you tell me if :
    We need to execute uccheck with the selection I describe you ?
    Do we need to correct only the errors ? or also the warnings ?
    Thank you for your answers.
    Vanessa Roulier

    Hi,
    This is the procedure,
    1. Take all objects list from old production(follow this list only).
    2. Check unicode checks active one by one(better in stead of using UCCHECK)
    3.Correct the errors.
    4. Neglect warnings.
    5. Activate the objects.
    6.Go to Unit testing.
    Note: Do  not save all objects in under single request, that will create problems to u while moving.
    http://www.sap.com/korea/Company/Events/techday05/img/data_01.pdf
    Thanks and Regards,
    Edited by: chandra madapati on Jan 16, 2008 11:18 AM

Maybe you are looking for

  • Duplicate a Text Field on Every Page of a Document?

    Today I wrote my first vb.net/adobe app.  I managed to open the pdf doc in adobe and create a named text field.  I managed to insert a java script that gets the current date when the document is open and updates the text field.  I would like to dupli

  • My tool bar isn't showing at top and the start and time at bottom isn't showing up...

    What has happened and how do I fix this?

  • Messed up PC icons

    I was trying to sync my data from my bPC to my iphone. Something happened and many of my program icons including Explorer and others all turned to iTune lnks. How do I reverse this?

  • Legend placement in Excel

    Hi, I'm trying to control the placement of a chart legend in Excel from Labview using active X. The VBA lines I need to perform in Labview are as follows: ActiveChart.Legend.Select Selection.Position = xlBottom The problem I'm having is that I can't

  • Adobe CS6 Master Collection DISK setup issues

    I duplicated the contents of all 3 dvds to the hdd as a backup, in case the dvds break. However, when I run dvd 1's setup from the hdd, it eventually says to insert dvd 2 to continue installation, which I do, but it doesn't work. 1) What's wrong? Do