How to use the: token of $ $PROFILE in a game of validation of table values

Hello community,

Let me explain the scenario.

We have a set value (CLIENTS SERVICIO DIRECTO) Flex with a validation of the table included in the PO headers FDF, which shows a LOV with the recipient addressfrom the customer we want to serve the goods; that is, we act as a commisionists and the provider makes the goods to the customer's shipping address.

This Flex value, as I said, have a table, with the following table of validation validation:

Application of the table: Oracle receivables
Table name: RA_ADDRESSES_ALL a, RA_CUSTOMERS b

Table Columnns: b.CUSTOMER_NAME Varchar2 (20), a.PARTY_LOCATION_ID Varchar2 (20)

Where / Order By: a.CUSTOMER_ID = b.CUSTOMER_ID

Additional columns: a.ADDRESS1 "address" (20), a.CITY Ciudad "(10) «»

If we translate this to a SQL code:

Select a.address1,
a.City,
a.party_location_id,
b.Customer_name
ra_addresses_all a.,
ra_customers b
where a.customer_id = b.customer_id
and b.customer_id = 6283 <-this last condition clause is intended to reduce the result to the interested customer.

This select recover we two records; for the same customer, one of them for an organization_id (say 85) and one of them for the other organization_id (84).

What are looking for us, and want to, it's that the LOV, which actually display two records, only shows the recipient site to the client that belongs to the organization_id that belongs to the user who questioned or creates the purchase order.

That is, suppose that we enter in Purchasing using the who have been assigned to the business unit or Organization_id 84. We want this theLOV to show that the recipient Site to the client that belongs to the business unit or Organization_id 84.

I believe that we can achieve this by using the: token of $ $PROFILE, but we do not know how.

Any ideas?

Thanks a lot for your answer.

I think that we can use elsewhere as fnd_profile.value ('profile_name') (?)

Kind regards.

Tags: Oracle Applications

Similar Questions

  • OGG for java: how to use the token in a velocity model


    Hello community,

    I need help to solve my problem.

    I have an extraction process that extract data from a table only on the insert.

    I want to insert this information in a jms queue. but I need more information to reproduce, so I use sqlexec and tojken to store the information in the file exttrail.

    I use an extract data pump to read data from the exttrail file and place it in a jms queue using a velocity template.

    My question is: how to read "user fees" in a model of speed?

    Thanks in advance for your help

    Concerning

    JMBien

    Following extracted files and model speed

    -----------------------------------------------------------------------------------------------------------

    X_FR2FRH

    SUCH X_FR2FRH

    SOURCEDB SFRH


    EXTTRAIL O:\GoldenGate\OGG_FRH\LT_FRH\FR2\FR
    TRANLOGOPTIONS MANAGESECONDARYTRUNCATIONPOINT

    GETREPLICATES

    --H
    TABLE "dbo." " HISTO_STATUT_WKF_MSG', COLSEXCEPT (_Timestamp),
    SQLEXEC (ID performance(1), QUERY "select CrMsgId, OrdrReleaseDtTm from cmc, HISTO_STATUT_WKF_MSG hswm CORE_MSG_COMPL where hswm.") IdHistoStatutWkfMsg =? and cmc. CrMsgId = hswm. IdMsg and IdTypeWkf = 3 and IdStatutWkf = 1 ", &
    PARAMS (p1 = IdHistoStatutWkfMsg)), and
    CHIPS (ORDRRELEASEDT = @GETVAL (performance(1). OrdrReleaseDtTm), CRMSGID = @GETVAL (performance(1). CrMsgId)));

    --------------------------------------------------------------------------------------------------------------------------------------------------------------

    PFR2RJMS :

    EXTRACT PFR2RJMS
    SOURCEDB SFRH

    SETENV (GGS_USEREXIT_CONF = "dirprm/PFR2RJMS.properties")
    SETENV (GGS_JAVAUSEREXIT_CONF = "dirprm/PFR2RJMS.properties")


    CUSEREXIT dirprm/ggjava_ue.dll CUSEREXIT-PASSTHRU - INCLUDEUPDATEBEFORES

    -getupdatebefores


    getInserts

    --H
    TABLE dbo. HISTO_STATUT_WKF_MSG;

    GET_USER_TOKEN_VALUE (OrdrReleaseDtTm, 8);

    ignoreinserts

    -------------------------------------------------------------------------------------------------------------------------

    Velocity model :

    # (This is a comment) if in "operating mode, then you can remove the outer loop,
    # and have only a 'foreach' iterate over the columns in the operation.
    ##
    < numOps transaction =' ${tx. Size}' ts =' ${tx. Timestamp} ">"
    #foreach ($op in $tx)
    < action type = "${op.» SqlType}"table =" ${op. " TableName} ">"
    #foreach ($col in the $op)
    < column name = "${col." OriginalName}"index =" ${col. " Index}", isKey =" ${col.meta.keyCol} ">
    < after >$ {col. AfterValue} < / after >
    < / column >
    #end
    < / operation >
    #end
    < / transaction >

    jmbien wrote:

    ...

    I have an extraction process that extract data from a table only on the insert.

    I want to insert this information in a jms queue. but I need more information to reproduce, so I use sqlexec and tojken to store the information in the file exttrail.

    ...

    My question is: how to read "user fees" in a model of speed?

    X_FR2FRH

    ...

    TABLE "dbo." " HISTO_STATUT_WKF_MSG', COLSEXCEPT (_Timestamp),

    SQLEXEC (ID performance(1), QUERY "select CrMsgId, OrdrReleaseDtTm from cmc, HISTO_STATUT_WKF_MSG hswm CORE_MSG_COMPL where hswm.") IdHistoStatutWkfMsg =? and cmc. CrMsgId = hswm. IdMsg and IdTypeWkf = 3 and IdStatutWkf = 1 ", &
    PARAMS (p1 = IdHistoStatutWkfMsg)), &
    CHIPS (ORDRRELEASEDT = @GETVAL (performance(1). OrdrReleaseDtTm), CRMSGID = @GETVAL (performance(1). CrMsgId)));

    --------------------------------------------------------------------------------------------------------------------------------------------------------------

    PFR2RJMS:

    EXTRACT PFR2RJMS

    SOURCEDB SFRH

    SETENV (GGS_USEREXIT_CONF = "dirprm/PFR2RJMS.properties")
    SETENV (GGS_JAVAUSEREXIT_CONF = "dirprm/PFR2RJMS.properties")

    CUSEREXIT dirprm/ggjava_ue.dll CUSEREXIT-PASSTHRU - INCLUDEUPDATEBEFORES

    -getupdatebefores

    getInserts

    --H
    TABLE dbo. HISTO_STATUT_WKF_MSG;

    GET_USER_TOKEN_VALUE (OrdrReleaseDtTm, 8);

    ignoreinserts

    -------------------------------------------------------------------------------------------------------------------------

    Velocity model:

    #foreach ($op in $tx)
     
    #foreach ($col in the $op)
       
        ${col. AfterValue}
       

    #end
     

    #end

    In the excerpt from the source, you have two chips, ORDRRELEASEDT, and CRMSGID.  On each operation on the dbo. HISTO_STATUT_WKF_MSG, these chips will be defined.  (Other tables will not have these value tokens.) To use the chips in the model, use $op.getToken ("ORDRRELEASEDT") and $op.getToken ("CRMSGID"). Similarly for the "getenv" values defined by GG, $op.getEnv ("GGENVIRONMENT", "GROUPNAME")

    In both cases, you can first check if the value is set, ${op.isEnvSet ("GGENVIRONMENT", "the GROUPDESCRIPTION")}, or ${op.getToken("ORDRRELEASEDT").isSet ()}; for example,.

          token value: (is set? '${op.getToken("MY_TOKEN").isSet()}'): MY_TOKEN= #{if}($op.getToken("MY_TOKEN").isSet()) '$op.getToken("MY_TOKEN")' #{else} (not set) #{end}
    

    There is one caveat, however: process GoldenGate trail of data as a continuous stream, a single operation (insert, update, delete) at the same time. The only way that the GG Java adapter can "loop" on the operations in a transaction is by buffering all memory operations and then loop over them at the end (Alternatively, you can write a formatter Java custom which formats the data happens, each operation individually, and not stamp anything; but that cannot be done in speed (, assuming that you do not want to set txn as a msg JMS, rather than individual operations, sent as JMS messages.)

    In general, there are two ways to format data trail in JMS messages: an operation per message, or of a message transaction.  Using a txn/msg may seem simple, but imagine if you have a few jobs in bulk on the DB which transforms 100 millions of rows in a table in a single txn; Then, your message JMS maybe 100 MB (or several GB) in size (there is no way to know in advance). The GG JMS client might be able to send the msg (given enough memory), but it will probably lower the JMS server, or JMS clients consume the (huge) message.

    But back to what tokens: If you loop on operations in memory swabbed and make a call to "getEnv" or "getToken", these are in fact reminders of NYI "extract" and will retrieve the value of getenv/token for the current operation - that is to say, the last operation as part of the operation - which is probably not what you want.  The solution is to format each operation individually - you can do this automatically using Velocity templates if sending a msg by operation; otherwise, you will need to write a custom Java trainer that formats the message that each operation is received (not at the end of the tx), and you can still run the WAD Manager "tx" mode (i.e., sending a tx by msg) If you want.

    Other smaller points:

    • If you use GG 11.2 adapter, then you need not of the «setenv (...)» Properties); If you extracted 'foo', while it loads of 'foo.properties' from the directory dirprm automatically.
    • GET_USER_TOKEN_VALUE is not used in the file of the prm. It's a value C user-output API callback (i.e., only used if C user-output (in C) coding).  (I'm surprised that the prm file that allows here.)
    • You can delete the 'getInserts' and 'ignoreInserts', because even once which is not used in this case.  Changes/insertions/deletions are always "obtained".
    • You may need to spend in all inserts/modifications/deletions (including 'before' values) to exit user Java so that the limits of tx be properly processed; This was necessary before 11.2 Java adapter, and IIR there is a bug that prevented these filters work as expected in earlier versions of 11.2.  Alternatively, you can write filters in Java, by adding them to the file property: gg.handler.my_handler.filter = com.example.custom.MyEventFilter (where MyEventFilter implements com.goldengate.atg.datasource.DsEventFilter)

    It will be useful,

    -Mike

  • How to use the Smart zero 4.4.0 customer service and HP Profile Editor to activate chip cards

    I have a T610 HP Smart Thin Client from scratch and I get zero Smart software to recognize the card chip when connecting. How to use the Smart zero 4.4.0 customer service and HP Profile Editor to activate chip cards. You can configure without the profile HP of the XML editor.

    Mike Sieradzki

    Hello ski_mike.

    Welcome to the HP Forums. I understand that you want to support with your Smart Client zero. However, it is a commercial product. To get assistance, thank you for posting your question on the business Forums HP: HP Enterprise Business Community

    Thank you

    Mario

  • How to use the same services-config for servers the and remote.

    My flex project works very well using the bottom but when I download my flash on the server I do not work, all the files and related paths are the same execpt remote is a linux server.

    <? XML version = "1.0" encoding = "UTF-8"? >
    <>services-config
    < services >
    < id = 'amfphp-flashremoting-service' service
    Class = "Flex.Messaging.services.RemotingService"
    messageTypes = "flex.messaging.messages.RemotingMessage' >"

    < destination id = "amfphp" >
    <>channels
    < Ref channel = "my-amfphp" / >
    < / channels >
    Properties of <>
    < source > * < / source >
    < / properties >
    < / destination >
    < / service >
    < / services >
    <>channels
    < channel-definition id = "my-amfphp" class = "mx.messaging.channels.AMFChannel" >
    " < endpoint uri = ' http://localhost/domainn.org/AMFPHP/gateway.php "class="flex.messaging.endpoints.AMFEndpoint"/ > "
    < / channel-definition >
    < / channels >
    < / services-config >

    I think the problem is the line


    " < endpoint uri = ' http://localhost/domainn.org/AMFPHP/gateway.php "class="flex.messaging.endpoints.AMFEndpoint"/ > "

    but I don't know how to use the same services-config for servers the and remote.

    I'll back up a bit.

    Breakpoint URLS are defined as follows in the services - config.xml:

    https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure

    The meaning of each of the tokens is clearer when we see them as part of a complete url. If your context root is set to http://localhost , then I have no idea how your application runs in any environment.

    If you leave the server.name and server.port chips in your configuration file, then they will be replaced when executing according to the location from which your application is served. However, the context.root token is replaced at the time of the compilation based on the value that you specify in Flex Builder or when calling mxmlc.

    In order to reuse your file services - config.xml, you must use the same context-root on your development environment and to your deployment environment.

  • How to use the Page number in the IF condition

    Hello

    I have an obligation to change the output based on Page numbers. Can you please help me how to use the Page number in IF condition.

    Thank you

    Can u send me a sample xml and RTF file to my email in my profile identification, so that I can have a look.

  • With no headphone jack, how to use the iPhone in my car 7

    Okay, so here's the challenge.  I have a power source and a headphone and not Bluetooth.  It works perfectly with iPhones before 7.  But with 7, it isn't possible to use the same configuration I had for years.  I own my car, and I have no interest in buying a new car just to support a new phone.  And since this will be a problem for the years to come if I stay with Apple, I would like to know what are the solutions are available.

    So, how to use the new iPhone 7 while remaining responsible and using my car speakers?  Dongles Bluetooth that I need to reload, it's probably not.

    Thus, looking for ideas that might have people.  I can't be the only one with this concern.

    It's almost a certainty that a third party adapter will appear quickly. The new Macbook has a single port usb - c and people asked the same question, 'how to load and use USB at the same time." There are today dozens of solutions for the Macbook, and then it will be with the iPhone 7. An adapter with a 3.5 mm jack and a port of loading Lightening would be my guess. Kickstarter entrepreneurs are probably already working on it.

  • How to use the capture and the print button

    I tried to figure out how to use the capture and the "print" button, or add or what you call. I press it and the whole page of a different color changes, so I try to cut the section I want but I don't know how to send it to the printer. Can someone help me with this. I'm not at savvy with tech stuff, but when I find a recipe or something and it doesn't have an option to print a certain area, I can't understand how to use it?

    Thank you

    Andi Starbuck

    That happens to me is, I click and drag to make a rectangle of yellow selection, and as soon as I raise my finger on the mouse button, the part I've selected is captured as an image, a new tab opens and preview before printing, the image display. I can use the installation of the Page or simply print. But if I close the preview, this temporary image vanishes and I'm back on the page where I started. You see something different?

  • How to use the activity monitor to remove MegaBAckup on my mAc Book PRO?

    How to use the activity monitor to remove MegaBAckup on my mAc Book PRO?

    Download and run MalwareBytes. Malwarebytes was developed by one of our colleagues here to ASC. He received rave reviews and is on the more proven anti-malware for Mac software.

  • How to use the utility disk first aid for hard drive internal el captian

    How to use the utility disk first aid for hard drive internal el captian

    Select the drive and click first aid.

    If something is not repairable because this is the system drive, then you need to start using the recovery partition and run disk utility it.

  • How to use the Print Screen function?

    I've seen various descriptions of how to use the print screen function.

    It would be nice to actually tell one that works.  None have worked for me.

    [Fn] and Prt SCr does not work.

    CTRL and Prt SCr does not work.

    CTRL, Alt, and Prt SCr does not work.

    [Fn], Ctrl and Prt SCr does not work.

    If anyone knows the correct method to activate the screen capture function which would be a good thing.

    From the looks of things, HP has a big problem with this function.

    Here's a microsoft articleon the use of the screenshot function.

    This should answer your questions.

    Thanks for taking a peek.

  • How to use the acronym

    How to use the acronym instead of this?

    Please explain

  • How to use the adapter from the wall with my Mac Pro laptop?

    How to use the adapter from the wall with my Mac Pro laptop?

    The AC wall connector is not compatible with the outlet on the MBP?  As the MBP charger will work from 100v to 240v, a transformer is necessary.  You need a converter that connects to the power outlet home and is compatible with your MBP.  You can buy the Apple travel kit:

    http://www.Apple.com/shop/product/MD837AM/A/Apple-world-travel-adapter-Kit

    Or you can use a single specific converter for the geographical area:

    http://www.Amazon.com/orei-grounded-universal-adapter-Singapore/DP/B004SCSV2U/re f = sr_1_4? ie = UTF8 & qid = 1460735377 & sr = 8-4 & keywords = us + in + uk + power + adapter

    (it is a UK USA example)

    Or you can get the converter that adapts the charger directly:

    http://www.Amazon.com/HIOTECH%C2%AE-extension-charger-connecting-specification/d p/B00MA48JZW/ref = sr_1_3? ie = UTF8 & qid = 1460735486 & sr = 8-3 & keywords = us + in + uk + power + ad aptor + apple + charger + cord

    (again, this is for a UK plug.)

    Ciao.

  • SOLUTION - How to use the remote on the Satellite X 200 with Win7 64 bit

    Here is the description how to use the remote control on the Satellite X 200-2 b with Windows 7 64 bit.

    Thanks for the link.

    It will be fine if some owner of Satellite X 200 can confirm.

  • How to use the software keyboard Toshiba 50L9450VE TV?

    I just bought a LED TV model 50L9450VE. When installing, I need to enter the password for the wifi network. The remote doesn't have a keyboard of the letter, and the TV shows a soft keyboard to enter the password. How to use the software keyboard? I can't figure out how to get the cursor in it; the manual does not say, and I can't find the information online. Thank you.

    Hershel

    Suppose you are from Israel? Although this model is not made for the EU market, but probably for the Asian market, it looks like the European L93 series.
    You will find how to operate the software keyboard (page 52): http://www.toshiba-om.net/pdf/manual...h-Specific.pdf

  • How to use the recovery CD?

    Hello

    Ive lost the instructions to tell me how to use the recovery CD. I forgot, I need to press to access the disks when I reboot!

    Can anyone help please?
    St. Clare

    Hi clear, before using the recovery CD make you that all important data has been saved to the floppy or USB key because the procedure will erase the entire hard drive. The method for booting from a cΘdΘrom may vary according to the model number of your laptop, but it's something like hold the 'B' button for the Toshiba Startup logo. If this fails you can try to change the boot sequence or use the Toshiba from Windows or the BIOS configuration tool (ESC then F1 when prompted from a cold start) make CD-ROM the first device startup in the list.

    Richard S.

Maybe you are looking for

  • Remove the BIOS password.

    Hey guys, I upgraded to a my former DV4 DV7. My friend, who's a btw jackass, put a bios password on it and I can't go into it more to activate the CD so I can install windows 8. It says disabled system. Key: 81010726 Any help would be appreciated!

  • Replace with non-lenovo disk?

    Active protection system will work if I can replace my drive perceive a disk standard non-Lenovo? I know that the shock sensor is on the motherboard, but are there special requirements for the drive itself?

  • Try to run a DOS program on my new computer which has Windows 7 installed on it.

    Our point of sale is a DOS based program.  He can run, must see what terminal number you use.  For this information, it looks like the AUTOEXEC. BAT file. I used to be able to access and modify the Autoexec. BAT file in Windows XP by running the comm

  • Backup Windows 7 Pro 64-bit question

    Hi all I know there are a lot of posts on this subject, however, I want to use a backup program to back up only the My Documents folder. I store everything in that folder that I'm working on. Programs and other things is in the correct places [progra

  • Not able to install the driver for CD/DVD drive

    CD - dvd burner driver accidentally remove my cd - dvd burner driver while upgrading windows vista to windows 7. tried to download from Sony eSupport and only can be updated with windows vista, is there any other driver that I can download to solve m