explain the setAttribute in the OPS?

Hi all

If (PageContext.GetParameter ("Button1")! = null)

{

DetailsVORowImpl vo = (DetailsVORowImpl) am.findViewObject ("DetailsVO");

oracle.jbo.Row lines [] = vo.getAllRowsInRange ();

for (...)

{

Rowi DetailsVORowImpl = (DetailsVORowImpl) lines [i];

String SelectFlag = (String) rowi.getAttribute ("SelectFlag");

if("Y".) Equals (SelectFlag))

{

am.invokeMethod ("set_flag", param);

v_count = Integer.valueOf (v_count.intValue () + 1);

rowi.setAttribute ("SelectFlag", "N");

}

}

SET_FLAG

public void set_flag(String, Style)

{

VR;

{

OADBTransaction tr = getOADBTransaction();

CrossRefEOVOImpl vo = getCrossRefEOVO();

Line CrossRefEOVORowImpl = null;

for...

{

If (((Segment1.Equals (style)) & & (Segment2.equals (cust))))

{

System.out.println ("enter in this");  -> this one right?  It is not printed in the Debug Messages

row.setAttribute ("SelectFlag", "Y");

TR.Commit ();

break;

}

}

}

This means first define SelectFlag y (of set_flag method) and then it will set the SelectFlag as right N?

If the is SelectFlag N to the right database?

Sorry, replace

vo.setWhereClause("SEGMENT1='"||ItemStyle||"' AND REFERENCE='" ||crossref1|| "'");

with

vo.setWhereClause("SEGMENT1='"+ItemStyle+"' AND REFERENCE='" +crossref1+ "'");

See you soon

AJ

Tags: Oracle Applications

Similar Questions

  • A few quick questions in the OPS?

    Hi all

    I have a few questions for which I need clarification for the interview questions.

    1. If I made extension of VO and made customizing too on some pages. Even if we get an error. How to find out that we got the error and how to fix that?

    2. If we add 2 new columns to the page through the extension of the VO, then everything by customizing the page to create two new points to the table columns, what instance name of view we need to specify for items/columns newly created in Customizing, expanded Standard VO or OV name? and why?

    3. how to implement de FACTO forces in the OPS?

    4. at what level do you jpximport?

    5. can we make our pages on standard pages? If there is a way then please explain how?

    6 EO is necessary for all the pages in the OFA Standard?

    7. give me an example of the difficult task that you encountered during development in the OPS? Please specify at least one task.

    8. how to set the property(Rendered/Disable) of any article on click of a button without using a PPR?

    Please provide answers to these questions...

    Your help will be really grateful to understand more the OAF and interviews of crack.

    Thank you.

    9. can I make LOV messageTextinput in the standard page of the OPS? If yes how?

    You must hide the messageTextInput (make = false) and add a LOV using customization.

    10 can be done messageTextinput to LOV in the OFA standard page through customization?

    Same as above

    11. how to set the property(Rendered/Disable) of any item on click of a button, without use of PPR and set any value in processFormRequest?

    Could not set the property to processFormRequest. As I mentioned before, you have 2 options.

    1 true/false value declaratively or in PR

    2 attach an attribute of the VO property Render/people with reduced mobility.

    If this isn't the case, PPR, another page submit event must occur for this is reflected.

    Reference: advice of Oracle of Johny: OAF: Spel liaison

    Advice from the Oracle Johny: OAF: how to create a PVO and use for Spel link in Oracle Application Framework

    See you soon

    AJ

  • HP Laserjet Pro M201dw: "then I explained the problem to management and they said not to buy all the HP printers more."

    Our two new printers Laserjet Pro M201dw are not recognized on the office network.   I have spent hours trying to understand this and posted questions on the forum Support HP, but without response. They became more disadvantages than thay are worth.  And that's enough.  Then I explained the problem to management and they said 'don't buy it not all HP printers more.'

    Thanks for the suggestions.

    I tried to BootP and disable ipv6 on a printer and at first, it worked (finally).  But then, after having unplugged and restarted, he returned to the ip address of connection no.

    So finally, I noticed and changed the setting of the link of "Automatic" to '100TX' speed full - and that seems to have solved the problem of intermittency.  I've converted and turn it back on, unplugged, etc., and it maintains the connection and ip address.

    Do not want to play with something that works, I can't say with certainty if the speed of one link would have solved the problem (probably not), but it seems that while your excellent suggestions finally established a network connection, the setting of explicit link speed was necessary to maintain the connection.

    Thanks for your help in this matter!

  • How to explain the error in the executable file?

    As everyone knows, there are 3 parts to the cluster of error: status and source code. The State's flag, the code is the error code and the source is where Labview think that the error occurred. Normally, when I'm in the environment labview course I can just right mouse click the error and click "explain the error" and a description and detailed error possible cause rises.

    However, when I create an executable I don't know how to explain the error to the user, such as labview.

    When an error occurs that I wish I had a popup that says code error, source and EXPLANATION. The code and the only source is so enigmatic sound quite panic inducing the user, whether or not the error is unrecoverable/crash-inducing. Also this would save me having to search the online error code.

    How to make the explanation of the error code? There is a vi that I can enter an error code and get the explanation string?

    There is probably something simple I forget but I couldn't find the answer in my research. Thanks in advance for your help.

    Simple error handler and screw General Error Handler?

  • can you explain the purpose of layout and describe when it should be used? __

    can you explain the purpose of layout and describe when it should be used?

    http://www.Google.com
    Use a more specific search term. This will help you get a good answer for your homework. ;-) MS - MVP - Elephant Boy computers - don't panic!

  • Can someone please explain the usefulness of "Libraries" in Windows 7?

    Can someone please explain the usefulness of "Libraries" in Windows 7?

    All this means to me is that:

    1. it can be indexed, whoop-de-doo! I know how to turn on the indexing of files.
    2 takes Double extra clicks to get the folder I want to!
    3 half-G * D - D * M-TIME, I find myself clicking on a duplicate, My Documents link only which is access denied and have to click on the actual file just next door!

    Suffice it to say. I ALSO HATE the frickin' Ribbon in Microsoft Office and I woke up on the wrong side of The Bed upwards!

    . . . AND WINDOWS 7 SEARCH SUXX - BREEZE ON HALF THE COMPUTERS THAT I MANAGE.

    Windows Net Admin - more than 20 years.

    Understand the win - 7 library system,

    http://www.howtogeek.com/HOWTO/10283/understanding-the-libraries-feature-in-Windows-7/

    http://msdn.Microsoft.com/en-us/magazine/dd861346.aspx

  • Explain the explain plan

    decide to move to optimization soon. Book says join faster that the subquery in this example because the analyses involved. The "cost" to the subquery appears lower than the cost for the join. So it is confusing to me - aka How should I be interpreting this.

    Plan of subquery:

    image2.png.jpg

    join plan

    image2.png.jpg

    as you can see that the plan for the subquery has less than a cost. Could someone explain these outputs as to which application is more effective. I need to start somewhere.

    Thank you!

    The BEST way to get help when you ask questions is:

    1 ask questions on SPECIFIC things

    2. tell us EXACTLY what term, value, etc. ask abaout

    Book says join faster that the subquery in this example because the analyses involved. The "cost" to the subquery appears lower than the cost for the join. So it is confusing to me - aka How should I be interpreting this.

    OK - what BOOK are you talking about? There is not much interest to mention a book if you're not going to tell us which book it and provide a link to it and even a page number. This gives us the SCOPE of your question.

    This "cost for the subquery" are you talking about? Be specifc. It is in one of the plans that you posted? What plan? Whose cost is it? For example, you could say:

    I have a question for the foreground below. Why is the cost to the xx line lower than the cost of the second plan on line AA?

    This question refers CLEARLY to the info we're talking. The way in which you stating the question, we try to guess what plan and the lines you want to say.

    subquery plan:
    
    
    join plan
    
    
    as you can see the subquery plan has less of a cost. Could someone explain from these outputs as to which query is more efficient. I need to start from somewhere.
    

    Are you talking about line #1 in each of these plans?

    Please edit your post and tell us EXACTLY what you ask in the topic and refer to values and SPECIFIC lines. Also post a link to the book and a reference to a page number you got the information from.

    The optimizer generally chooses the REAL implementation with the lowest cost plan. It is not clear whether the plans that you have posted are ACTUAL spending plans that Oracle really determined and used or just explain plans.for what Oracle thought it might use.

    If the statistics are not up-to-date these plans do not yet reflect the reality of the data.

    And if the amount of data is a small number of blocks or other of these plans can run better than the other in reality.

    You can find this Oracle white paper "Explain the Plan explaining" useful

    http://www.Oracle.com/technetwork/database/bi-Datawarehousing/TWP-explain-the-explain-plan-052011-393674.PDF

  • Question about cardinality (lines) to explain the plan

    I have two tables (names have been changed to protect the innocent):


    TABLE 1:


    The Null columns?    Type

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

    Table1_Primary_Key NOT NULL NUMBER

    more than 10 columns


    TABLE2:


    The Null columns?    Type

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

    Table2_Primary_Key NOT NULL NUMBER

    more than 8 columns


    Lines of table1 has 1097172


    Rows of table2 has 160960


    I am analysis request and get explain below:


    SELECT t1. Table1_Primary_Key

    --

    FROM TABLE1 t1,

    From TABLE2 T2

    --

    WHERE t1. Table1_Primary_Key = t1. Table1_Primary_Key

    AND t2. Table2_Primary_Key = 3432798

    /


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

    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |

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

    |   0 | SELECT STATEMENT |                 |     1.    21.     5 (0) | 00:00:01 |

    |   1.  NESTED LOOPS |                 |     1.    21.     5 (0) | 00:00:01 |

    |   2.   TABLE ACCESS BY INDEX ROWID | TABLE2.     1.    12.     3 (0) | 00:00:01 |

    |*  3 |    INDEX UNIQUE SCAN | TABLE2_PK |     1.       |     2 (0) | 00:00:01 |

    |   4.   TABLE ACCESS BY INDEX ROWID | TABLE1.  1096K |  9634K |     2 (0) | 00:00:01 |

    |*  5 |    INDEX UNIQUE SCAN | TABLE1_PK |     1.       |     1 (0) | 00:00:01 |

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


    As you can see it table2 is exactly 1 row and join table1 on a correspondence of single line.


    My question is this:


    Why the plan of the explain command seems (at least for me) to indicate that it looked like all the rows in TABLE1?


    Thank you


    Thomas

    the optimizer's decisions are based on the object (and maybe system) statistics: so it's a good idea to provide as much information as possible in these statistics. Basically, there is nothing wrong with statistics automatic collection job - so I would count on that if I don't have very good reason to use anything else. Of course, there are some situations in which it's a good idea to add a few adjustions for automatic collection: sometimes, there is too much created histograms, sometimes there is too little (basically you have histograms when the distribution of the data is not yet). And if there are columns with correlated values who serve together in boundary conditions then create extensive statistics may be a good idea. To make these adjustions, you can use the routines of pref dbms_stats. And sometimes, it may even be a good idea is not to collect statistics for an object and use the sample dynamic (dynamic statistics) for more detailed information on the cardinality of distribution and join.

    In the book of my opinion Jonathan Lewis cost base Oracle Fundamentals still contains the best explanation of the use of optimizer statistics - and Christian Antognini Oracle performance troubleshooting also provides a lot of valuable information about statistics and their gathering. Of course the documentation also explains the basics in detail: Managing optimizer statistics - 11 g Release 2 (11.2). And if you want to get a shorter summary, then you can always take a look at the Web of Tim Hall site: https://oracle-base.com/articles/misc/cost-based-optimizer-and-database-statistics.

  • Unable to get the parameter by using a controller in the OPS

    Hello!

    I am new to using the OPS and will very much appreciate your help!

    FYI:

    Basically, I need to add 2 descriptive flexfields in a page (by creating a VO) and I need to update the table with the data stored on these de facto forces (I did all the logic already).

    I created a (CO) controller that calls a method that is declared in an application module (AM) that runs a stored procedure (CO and the AM were created by me and that they extend a standard CO and I am).

    Problem:

    However, updated just before... I'm having a problem because I can't get a parameter using paramContext.getParameter("reqHeaderId"). who will help me to identify which line I need to update.

    Because the statement is not capture the value, it returns a null value, and I got the following error when I try to convert it to a number in: oracle.apps.fnd.framework.OAException: java.lang.NumberFormatException: null

    It is really important to mention that, before we get to the page where I clicked the Send button that makes the logic mentioned... There are 2 pages before that where I'm trying to capture the setting and the required parameter is defined on the 1st page. I have been checking each standard CO 3 pages and they use the statement pageContext.putParameter ("reqHeaderId"); to switch between the 3 pages (as far as I know, if not please correct me). On the 3rd and last standard CO that it uses pageContext.getParameter ("reqHeaderId"); to get the value and make another logic.

    So why Im not getting the value if I do the same thing (pageContext.getParameter ("reqHeaderId") ;) on my xxController (which extends the standard co)?


    Here is the code of the controller:

    public class xxController extends standardController {}

    ' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)

    {

    super.processRequest (pageContext, webBean);

    }

    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)

    {

    super.processFormRequest (pageContext, webBean);

    String str;

    Str = pageContext.getParameter("_FORM_SUBMIT_BUTTON");

    If ((str! = null) & & (str.equals ("SubmitButton")))

    {

    String ReqHeaderId = pageContext.getParameter ("reqHeaderId");

    String ReqLineId = pageContext.getParameter ("reqLindId");

    [Serializable] Parameters = CLIENT1

    {

    ReqHeaderId

    ReqLineId

    pageContext.getParameter ("xxavtBienServicio") //dff

    pageContext.getParameter ("xxavtAttribute3") //dff

    };

    String var = (String) am.invokeMethod ("updateAttributes", parameters CLIENT1);    updateAttributes is the method that converts it to ReqHeaderId number and runs my stored procedure

    }

    }

    }

    Thank you in advance for your help!

    Hello

    I found the reason why I have problems to get the needed values.

    The reason was that the given property has been set to false in order to use pageContext.getParameter must be set to true. So, I went ahead and created as a "value of the form" this way I could put the melted property and keep the hide at the same time field.

    Thanks for your help!

  • How to clear a single block of the current page in the OPS

    Hi all

    How to erase a single block of the current page in the OPS. I used the CLEAR key.


    Thank you

    Hello

    I found the solution I wrote it in the button DELETE. I wrote the remove with vo1.setMaxFetchSize method (1);

    and remove called AOS

    Thank you

  • How to get the full name of the user of the OPS?

    Hi Experts,

    I know we can get the login controller pageContext.getUserName () user name. Is there a simple way/API to get the full name of the user (name, first name) of the OPS?

    Thank you.

    Hello

    USER name and information of the PERSON are two different concepts. You can get the id of user with pageContext.getUserId () connection. In order to get the first name, last name, you must select it from table PER_ALL_PEOPLE_F.

    You can use the sql select and set pUserId of pageContext.getUserId ();

    SELECT FIRST_NAME, LAST_NAME TO PAP PER_ALL_PEOPLE_F, FND_USER FU

    WHEN TRUNC (SYSDATE) BETWEEN PAP. EFFECTIVE_START_DATE AND PAP. EFFECTIVE_END_DATE

    AND FU. EMPLOYEE_ID = PAP. PERSON_ID

    AND FU. User_id =: pUserId

    Anil

  • Hello. I explained the following error in InDesign. When you open a file that is stored on a server, I get an error message because the file is already open, or don't have sufficient permissions. If I copy to the desktop and open it, I have no p

    Hello. I explained the following error in InDesign. When you open a file that is stored on a server, I get an error message because the file is already open, or don't have sufficient permissions. If I copy to the desktop and open it, I have no problem. Can someone help me? Thank you.

    Is there a file .idlk remaining on the server which is not removed properly?

  • Is he closer to display the data in graphic format in the OPS?

    Hello Experts,

    I'm working on a feasibility OFA study and I have a question: is there in the OPS, any approach to represent data in graphic format, such as the schema of the Terminal?

    As far as I know, ADF supports this kind of representation and it can be incorporated into the OAF page as region. But it seems to separate server for the ADF, which is not supported in my project (assuming we have only EBS server). And the situation is similar for embedded Analytics OBIEE approach.

    Would like to share your experience or the reference of this kind of solution? Appreciate your help in advance!

    Thank you and best regards,

    Clark

    You can use graphics in the OPS.

    Visit this link: Java Based Technology Blog Sushant: 14. Graphic design in the OPS

    Sushant-

  • Explain the Plan of DBA_HIST_SQL_PLAN

    Hello

    I have the SQL_ID of a poor performing stmt of sql and I need to get the plan to explain the same DBA_HIST_SQL_PLAN.

    Please let me how can know I generate an explain plan of DBA_HIST_SQL_PLAN using sql_id.

    Kind regards

    VN

    That's fine - the service is available in this version.  (I asked because I thought that might be a function g 11 - but I just checked, and it's in 10 gr 2 as well).

    Concerning

    Jonathan Lewis

  • Hello. Hard drive of my computer totally crashed & I had to wipe my hard drive. I wasn't able to log out of my apps for the creation of clouds which my wife has 2 licenses for us. Can someone please explain the process to re download these apps please

    Hello. Hard drive of my computer totally crashed & I had to wipe my hard drive. I wasn't able to log out of my apps for the creation of clouds which my wife has 2 licenses for us. Can someone please explain the process to re download these apps please? Thank you..

    Hello

    Please refer to the help documents below to download the application Adobe CC:

    Creative cloud to desktop

    Download, install, update or uninstall applications

    Kind regards

    Sheena

  • Report of the OPS / s

    We currently just bought a new storage and I'm looking for the best way to get reports of the IOPS / s of our virtual machines. Specifically, I want to get the OPS are / s for the last quarter on schedule from 07:00 - 18:00. We're currently on vSphere 4.1. A good majority are desktop view, that's why I want to look specifically at opening hours. Any ideas? Thank you!

    Here's a quick and powershell (really) dirty way providing the average and maximum read and write of IOPS / s over a period of days:

    $daysback = - 30
    $vms = get - VM
    "write-host (" {0, -40} ' t 1.8 t {2,8}} 't {3.8}' t {4,8} "-f"VM"," IOPS / s W avg ', ' Avg R IOPS / s "," W IOPS / s max "," IOPS R / s max ")"
    ; $vms | kind | % {
    $wval = (((get-Stat_$_-stat_"datastore.numberWriteAveraged.average"-Start_(Get-Date).adddays ($daysback) - Finish (Get-Date)) |-expandproperty value Select): measure - average - max);
    $rval = (((get-Stat_$_-stat_"datastore.numberReadAveraged.average"-Start_(Get-Date).adddays ($daysback) - Finish (Get-Date)) |-expandproperty value Select): measure - average - max);
    write-host ("{0, -40} ' t {1, 8:N2} t {2, 8:N2} ' t {3, 8:N2} t {4, 8:N2} ' f $_.) Name, $wval.average, $rval.average, $wval.maximum, $rval.maximum)
    }

    Output is as:

    VM W IOPS avg IOPS R / W IOPS avg s / s max IOPS R / s max
    VM1                                                1,96            0,67            7,00           31,00
    VM2                                                0,46            0,53            7,00           17,00
    VM3                                                7,57            7,66           52,00           73,00
    VM4                                                3,47            0,00             4,00            0,00
    [...]

    Remember that historical performance data are rolled up in the DB vCenter. So if you query data from the last 30 days as in this example, the values are made upwards of 2 average hours wrapped in the comic book. Especially the peak values can seem a little low then. Go to-1 (dailly, 1 minute averages) or - 7 (weekly, 30-minute averages) in this case and run it periodically.

    Also, here is a version that will assess only the values with a timestamp between 07:00 - 18:30:

    $daysback = - 30
    $vms = get - VM
    "write-host (" {0, -40} ' t 1.8 t {2,8}} 't {3.8}' t {4,8} "-f"VM"," IOPS / s W avg ', ' Avg R IOPS / s "," W IOPS / s max "," IOPS R / s max ")"
    ; $vms | kind | % {
    $wval = (((get-Stat_$_-stat_"datastore.numberWriteAveraged.average"-Start_(Get-Date).adddays ($daysback) - Finish (Get-Date)) |?)) {$_. "Timestamp.ToString () - match" (0 [7-9]: 1 [0-8]) :'} | Select - expandproperty value) | measure - average - max);
    $rval = (((get-Stat_$_-stat_"datastore.numberReadAveraged.average"-Start_(Get-Date).adddays ($daysback) - Finish (Get-Date)) |?)) {$_. "Timestamp.ToString () - match" (0 [7-9]: 1 [0-8]) :'} | Select - expandproperty value) | measure - average - max);
    write-host ("{0, -40} ' t {1, 8:N2} t {2, 8:N2} ' t {3, 8:N2} t {4, 8:N2} ' f $_.) Name, $wval.average, $rval.average, $wval.maximum, $rval.maximum)
    }

Maybe you are looking for