Set Visible the items

Hi, I need to switch the status of the item:
In the trigger WHEN-NEW-FORM-INSTANCE of my module, i write the following source:
DECLARE
NUM_IE NUMBER(2);
BEGIN
GO_BLOCK('ING_EGR');
ID_ITEM := FIND_ITEM('CAMPO1');
SELECT GET_NUM_ING_EGR() INTO NUM_IE FROM DUAL;
IF (NUM_IE >= 1) THEN
SET_ITEM_PROPERTY(ID_ITEM, VISIBLE, PROPERTY_TRUE);
EXECUTE_QUERY;
END IF;
END
The function GET_NUM_ING_EGR() returns a number value and I store it in the variable NUM_IE.
In the module the item CAMPO1, is an unbound item and its status is NOT DISPLAYED.
My Question is: When I execute the module, this item don't switch its status, that is to say its status is the same.
I use Designer 10.1.2.0.2 and Oracle 10G and I generate the aplication to forms language.
I'll wait your answer,
Thanks so much.

What debug mode?, of the Operation System o what are you talking about?.
I'll wait your answer.
Thanks, so much.

Similar Messages

  • How can I avoid automatical quantity confirmation of the items?

    At our case, production is done on sales sales order for some of the materials. When all of the materials at the order are producedi I want to triger the availability check but availability check triggered autpmatically when for the first time the order is created. I don't want the system to make the confirmation automatically. How can I avoid automatical quantity confirmation of the items?
    Thanks in advance for the answers....

    Hi Yasar
    This can be done 2  ways
    1.if you want individual material stocks to be checked for avialbility and deliver them independently then check whether you are using requirement type KSV.
    2. If you want to send the group of materials together and do not want to send a material which is part of group individually ,you can use delivery group with Sales Bill of material  concept . the header material may be a fantom assembly .
    The delivery group is set at the item  category level ,so u can set it for the item categories u want to go together.
    for example  all text package inserts ,extra spares and a material must go together, they  will be part of delivery group.
    I hope this helps
    Regards
    Mandar

  • Maybe Flex SDK bug: Setting visible of DataGrid item renderers

    Hi all, I'm still a noob at flex but this looks a bit strange to me.
    I've been trying to hide a button renderer in a DataGrid but it just wouldn't hide.  I've been setting visible inside the mxml and also in the the class that extends buttonbut it just wouldn't hide.  I then overloaded the visible property set/get and traced what was setting the property to true and found that inside DataGridBase.as the function setupColumnItemRenderer always sets visible of the renderes to true.
    DataGridBase.as
    protected function setupColumnItemRenderer(c:DataGridColumn, contentHolder:ListBaseContentHolder,
                        rowNum:int, colNum:int, data:Object, uid:String):IListItemRenderer
            var listItems:Array = contentHolder.listItems;
            var item:IListItemRenderer;
            var rowData:DataGridListData;
            item = listItems[rowNum][colNum];
            if (!item || itemToUID(item.data) != uid
                || columnMap[item.name] != c)
                item = createColumnItemRenderer(c, false, data);
                if (item == null)
                    return null;
                if (item.parent != contentHolder)
                    contentHolder.addChild(DisplayObject(item));
                // a space is used if no data so text widgets get some default size
                columnMap[item.name] = c;
                if (listItems[rowNum][colNum])
                    addToFreeItemRenderers(listItems[rowNum][colNum]);
                listItems[rowNum][colNum] = item;
            //[Matt] moved from inside the block above to outside because
            //the item definitely exists at this point, and always needs
            //its data refreshed
            rowData = DataGridListData(makeListData(data, uid, rowNum, c.colNum, c));
            rowMap[item.name] = rowData;
            if (item is IDropInListItemRenderer)
                IDropInListItemRenderer(item).listData = data ? rowData : null;
            item.data = data;
            item.visible = true;
            if (uid && colNum == 0)
                contentHolder.visibleData[uid] = item;
            return item;
    Why does it do this?  Shouldn't it respect the visible property already set for the renderer in mxml and not force it to true on init?

    Renderers use the visible property for recycling.  Invisible renderers are not supported.  The hit detection logic would find it the cell it belongs to even if it was invisible.  You can set alpha=0, but it won't stop the hit detection logic.
    Why are you trying to hide a renderer?
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Set visibility property for items depending on other items

    Hello,
    I want to set the visibility setting for an item that I have, the steps should be as the following,
    for example
    if I have an item that asked,
    do you have children ?
    if the answer is Yes,
    the next item should be visible which let's say, number of  them
    if no,
    the next item should be not visible
    I tried to set a trigger for the item I am controlling its visibility which is
    pre-text-item and wrote
    if 'CHEQUE_TABLE.CHEQUE_RECIEVED'='yes'
      then
      set_item_property(:SYSTEM.CURRENT_ITEM,visible,property_true) ;
    else
      set_item_property(:SYSTEM.CURRENT_ITEM,visible,property_false) ;
      end if;
    but it doesn't seem to be right, ,,,
    thank you

    I can see two potential problems.  The first:
    if 'CHEQUE_TABLE.CHEQUE_RECIEVED'='yes'
    Does CHEQUE_TABLE.CHEQUE_RECEIVED refer to a Data Block and Item?  If yes, then you are trying to tell Forms to look at the value of the string 'CHEQUE_TABLE.CHEQUE_RECEIVED' when you should be refering to the value of the Block.Item through direct reference, eg:
    IF :CHEQUE_TABLE.CHEQUE_RECEIVED = 'yes'
    How is the value of CHEQUE_RECIEVED set?  Does the user select the YES value from a List of Value (LOV) or from a Poplist or do they enter the value by typing it in?  If your code is looking at the string 'yes' and comparing it to the value of the Block Item which is in upper or mixed case, then 'yes' = 'Yes' or 'yes' = 'YES' will evaluate to FALSE instead of TRUE.
    It is always a good idea to use a Poplist or a List of Values when you are expecting specific values to be entered by the user; this enables you to force the value to be entered the same by everyone.  If the user CAN type the value in, then at least set the Case Restriction property to UPPER or LOWER so regardless of how the user enteres the value, it will be stored in the corrected case.
    Craig...

  • How can i set the item properties at top level

    Dear all
    i want to set the responsiblityname and operating unit name at the top of the page
    is there any specific regions are there to set at the top level of the page(Image region)
    Regards
    Sreekanth

    FND Framework Compataibiity Mode is a Profile Option you can set the value as 11.5.10.
    And instead of creating product branding progrmatically create product branding and incontextbranding at design time.
    Also, for both of these items we have View Object and View Instance properties...
    For this you take two transient attributes in VO and then as you have grabbed the responsibility name and operating unit...
    then you can set these values on these Transient attributes and then they will be visible on Top region of page.
    Associate these transient Attributes on product branding and incontextbranding items.
    Thanks,
    Gaurav

  • Setting visible/invisible when menu item is contained/not contained

    Hello All,
    I have a vertical rectangle (the containerButtonsRect) that contains menu items (text). The items slide up and down when using up and down keys. When the items go out the container I want to make them invisible. When they come back in the containerButtonsRect I want to make them visible. The following code does not work:
    override public function create(): Node {
            for (i in [0..sizeof labelButtons - 1]) {
                def menuItem:MenuItem = MenuItem {
                            x: bind containerButtonsRect.x
                            y: bind (containerButtonsRect.y + (i+1)*ySpacing + i*maxButtonHeight)
                            width: bind containerButtonsRect.width
                            height: bind maxButtonHeight
                            content: labelButtons[i]
                            translateY: bind tracker*deltaY
                            visible: bind ((menuItem.y + translateY > containerButtonsRect.y) and ((menuItem.y + translateY + maxButtonHeight) < (containerButtonsRect.y + containerButtonsRect.height)))
                insert menuItem into menuItems;
                if (i == focusedIndexItem) {
                    menuItems[focusedIndexItem].selected = true;
                updateMaxSize(menuItem);
            return Group {
                content: bind [
                    containerButtonsRect,
                    selectionRect,
                    menuItems
        }It is strange that the following line:
    visible: bind ((menuItem.y + translateY > containerButtonsRect.y) and ((menuItem.y + translateY + maxButtonHeight) < (containerButtonsRect.y + containerButtonsRect.height)))does not do the job.
    Is there a better way to set the visible attribute based on the logic described above?
    Thanks.
    Edited by: sacchett88 on Jun 9, 2010 2:10 PM

    Thank for the response.
    The translateY is set to provide vertical motion. A time line is controlling the tracker variable. So when I move arrow up/down the items scroll up/down.
    I agree JavaFX have way complicated the different variables you can set to position components and retrieve width and height. This cause a lot of problems hard to debug.
    Interesting your ideas of setting the clip of the group. I am not to familiar with that attribute as well the description in the docs: http://java.sun.com/javafx/1.3/docs/api/javafx.scene/javafx.scene.Group.html is poor:
    "Specifies a Node to use to define the the clipping shape for this Node."
    Is there any example you could point me out to ?
    Thanks.

  • Unable to open the photos in reviewer, every time I click on the photo on , it says do not have permission to view the photo. Please open the item in the finder choose the item and click on get info . What am I suppose to change in the setting on getinf

    Unable to open the photos in reviewer, every time I click on the photo on , it says do not have permission to view the photo. Please open the item in the finder choose the item and click on <get info>. What am I suppose to change in the setting on <get info>

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Triple-click anywhere in the following line on this page to select it:
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR..; sudo chown -R $UID:staff ~ $_; sudo chmod -R u+rwX ~ $_; chmod -R -N ~ $_; } 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if it frightens you, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password dialog will open. You’re not going to reset a password.
    In the dialog, select the startup volume ("Macintosh HD," unless you gave it a different name) if it's not already selected.
    Select your username from the menu labeled Select the user account if it's not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • To set an error while saving the order when the item categor changed in CRM

    Hello SAP Gurus,
    As per our current system set up, whenever the order created in CRM once replicated to ERP should not change the item category in CRM .If the item category is changed( allows the system) and saved, it gives an error as u201CItem category should not be changedu201D. We have been encountering  this type of issue since long back
    To avoid this type of issue, an error should through while saving the order when the user changes the item category in CRM.
    Can someone help me to achieve this.
    Thanks in advance.
    Cheers
    Sreedhar

    Sreedhar,
    Can't you control it by Item Category determination?
    JD

  • Set as default value the Item Category in the Maintenance Order

    Hello everyone,
    We are trying to find a user exit in order to set as default value the item category in the Maintenance Order once the Material has been introduced (Tag Components).
    SAP Customizing let the user set the Item Category automatically per Material Type, but we need to set different Item Categories to materials belonging to the same material type.
    We would really appreciate any help relating this issue.
    Thank you very much,
    Víctor Liedo

    Dear Paul,
    Thank you very much for your response.
    I had already tried customizing mentioned by Pithan, but it did not work because we need to set different Item Categories for Materials with same Material Type.
    We have been searching for exits which may let us set Item Category in the Maintenance Order, but it does not seem to be possible.
    What you say about adding some custom validation through user exit, not to set item category as default value, but to check if the one entered is valid, sounds the best way of achieving our commitments.
    I have tried to look for CNEX0037 & CNEX0038, by using transactions SE37 and SE38, search for programs and functions modules, but it did not work. Could you please tell us what kind of objects are?
    Thank you very much in advance.
    Víctor Liedo

  • Where is the option to set a ToDo item to repeat? ...

    I imported some calendar entries from MS Outlook onto my 5800, of which most were set to repeat every month.
    Those items successfully repeat on the device but on creating a new ToDo item using the device's calendar app, there is no option to set repeating occurrence!
    Where is the option to set a ToDo item to repeat?
    Can anyone please help me with this as I do not want to have to keep re-creating items and / or using Outlook to create them then transfer etc.
    'Ta very much.

    Just found an alternative that I thought was possible but wanted to confirm.
    Set yourself up a Nokia account on www.ovi.com and set up an OVI Sync account. Sync the phone to the online account to start with.
    Then, using the online interface to OVI Sync you can create an event that can be repeated weekly among other things. Re-sync the phone and that repeating event will be entered into your calendar.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • LAF project : can I set the item prompt font through the CSS ?

    Hi,
    I'm implementing an application that is installed with multiple customers. I've added in the LAF jar and used the .GUIProperties to set the Item font and colours (so each customer can choose a LAF without rebuidling the system).
    However, whilst this works, is there a way that I can set the Prompt properties using the .GUIProperties in the CSS - I can't see one (looking in the getContainerContent(Container ct)) part of the jar.
    Is there a simple way of doing this ? (ie: set the prompts for the application through one call to the .GUIProperties in
    PKG_LOOK_AND_FEEL.Set_GUI_Properties( '.GUIProperties1', 'LAF_BLOCK.LAF_BEAN' ) ;
    TIA
    Steve

    Hello,
    Please, don't ask question about the LAF on this forum. Send your questions to the corresponding email : [email protected]
    Thank you in advance,
    Francois

  • I deleted some of songs by iPhone.but now it until shows all that songs.they seems partially visible not like other song totally black.actual songs are 701 shown in setting.in the music it shows 901. How can I permanently delete them???

    I  cannt synk them to iTunes because lots of songs are not in iTunes now. This will delete my lots of songs.
    I deleted some of songs by iPhone.but now it until shows all that songs.they seems partially visible not like other song totally black.actual songs are 701 shown in setting.in the music it shows 901. How can I permanently delete them???

    I called Apple and spoke with a customer service representative regarding this issue. I was given the two things to try, and if they don't work, I was told I can call back in:
    1. Go to iCloud.com and look at the advanced options. Since Photos can be deleted here, the representative thought there may be an option to remove songs here as well.
    2. Go into the library that has the songs that were deleted and click Update iTunes match.
    I tried #1--this didn't resolve the issue, as there is no option to remove songs this way. I can't try #2 right now since I'm at work, but if anybody else with this issue can try that step it can help us get the ball rolling on it. After I try that, I'll call Apple back to discuss this further.

  • How to set the item property to restrict the user to not to copy from above

    Hi Guru's,
    I have a requirement like, There were two items on the form name email Id, Confirm email Id.
    I have to ristrict the user to not to copy from email Id item.. make him/her to enter the value into confirm email id item field manually.
    How to set the item property to restrict the user to not to copy from above item and paste it in this item.
    Please help.
    Thanks!!

    Just an opinion here, but that is about the dumbest requirement I have ever seen.
    I am always annoyed by web sites that ask me to enter my email twice. I ALWAYS copy the email address from the original entry and paste it into the second one.
    People enter their email addresses so often, it takes a real klutz to not get it right. And what makes you think that if they enter it twice, that they won't enter it wrong both times anyway???

  • Item - Can't set value on item because the item can't get focus.  [66000-15

    hi i created one text box in purchase order form and asign the choose from list.l when i choose in edit box its show the following error-- Item - Can't set value on item because the item can't get focus
    Dim lonHeadDatasource As SAPbouiCOM.DBDataSource
    lonHeadDatasource = oOrderForm.DataSources.DBDataSources.Item("OPOR")
    oNewItem1 = oOrderForm.Items.Add("EditDS", SAPbouiCOM.BoFormItemTypes.it_EDIT)
                        Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
                        Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
                        Dim oCFL As SAPbouiCOM.ChooseFromList
                        oCFLs = oOrderForm.ChooseFromLists
                        oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                        oCFLCreationParams.MultiSelection = False
                        oCFLCreationParams.ObjectType = "INTORDER"
                        oCFLCreationParams.UniqueID = "CFL1"
                        oCFL = oCFLs.Add(oCFLCreationParams)
                        oItem = oOrderForm.Items.Item("4")
                        oNewItem1.Top = 95
                        oNewItem1.Height = oItem.Height
                        oNewItem1.Width = 140
                        oNewItem1.Left = 125
                        oEdit = oNewItem1.Specific
                        oEdit.DataBind.SetBound(True, "OPOR", "U_EditDS")
                        oOrderForm.Items.Item("EditDS").Specific.ChooseFromListUID = "CFL1"
                        oEdit.ChooseFromListAlias = "U_ID"
    Item events
    Try
                If pVal.BeforeAction = False Then
                    If (pVal.FormType = 142) Then
                        Select Case (pVal.ItemUID)
                            Case "EditDS"
                                Select Case (pVal.EventType)
                                    Case SAPbouiCOM.BoEventTypes.et_GOT_FOCUS
                                    Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST
                                        Dim bonCflEvents As SAPbouiCOM.ChooseFromListEvent
                                        Dim bonCflList As SAPbouiCOM.ChooseFromList
                                        Dim bnnstrUID As String
                                        Dim bonDTTable As SAPbouiCOM.DataTable = Nothing
                                        bonCflEvents = pVal
                                        bnnstrUID = bonCflEvents.ChooseFromListUID
                                        bonDTTable = bonCflEvents.SelectedObjects
                                        bonCflList = oOrderForm.ChooseFromLists.Item(bnnstrUID)
                                        If pVal.BeforeAction = False Then
                                            If oOrderForm.Mode <> SAPbouiCOM.BoFormMode.fm_FIND_MODE Then
                                                If Not (bonDTTable Is Nothing) Then
                                                    If bonCflList.UniqueID = "CFL1" Then
                                                        If pVal.ItemUID = "EditDS" Then
                                                            Dim value As String = Nothing
                                                            oOrderForm.Items.Item("EditDS").Specific.value = bonDTTable.GetValue(0, 0)
                                                        End If
                                                    End If
                                                Else
                                                    lonHeadDatasource.SetValue("EditDS", lonHeadDatasource.Offset, "")
                                                End If
                                            End If
                                        End If
                                End Select
                        End Select
                    End If
                End If
            Catch ex As Exception
                SBO_Application.SetStatusBarMessage(ex.Message)
            End Try
    Thanks & Regards
    B.Narain

    Hi
    Instead of   oOrderForm.Items.Item("EditDS").Specific.value = bonDTTable.GetValue(0, 0) the following
    lonHeadDatasource.SetValue("U_EditDS", 0, bonDTTable.GetValue(0, 0))
    Regards
    Arun

  • Problem setting a hidden item value when button clicked with dynamic action or pl/sql process

    Apex 4.1
    Oracle 11g
    I have a page that consists of a main region and several sub regions.  I have a pl/sql process in After Header SET_DISPLAY(:P400_DISPLAY :='MAIN';)
    Three subregions have a contional display where P400_DISPLAY = STORE.  This works in hiding the sub regions.
    Now I want to change the P400_DISPLAY value to STORE to show the subregions when I hit a button.
    I tried creating a dynamic action for on click of the add button but get the following error:
    The selected button uses a 'Button Template' that does not contain the #BUTTON_ID# substitution string
    I went to the templates and found:
    Substitution Strings
    Substitution strings are used within sub templates to reference component values. This report details substitution string usage for this template.
    Substitution String
    Referenced
    From
    Description
    #LINK#
    Yes
    Template
    To be used in an "href" attribute
    #JAVASCRIPT#
    No
    To be used in an "onclick" attribute
    #LABEL#
    Yes
    Template
    Button Label
    #BUTTON_ATTRIBUTES#
    No
    Button Attributes
    #BUTTON_ID#
    No
    Generated button ID will be either the button's Static ID if defined, or if not will be an internally generated ID in the format 'B' || [Internal Button ID]
    I then tried creating a page process, pl/sql, :P400_DISPLAY :='STORE'; when the appropriate button is pressed.  The button action is submit page. However, it does not change the P400_DISPLAY value and the subregions stay hidden.
    Suggestions please on how to fix the template or change the P400_DISPLAY value?

    The root issue is that, although you change the value of your page item, it isn't visible to other areas of the page until it is in the session. So, any other action based on the value of your page item; the visibility of a control, a report based on the item's value, etc. will all be unaffected by changing the value of the page item until it has been changed in the session. Even after this the items are stored in the session, you must thereafter do something to cause the value to be reevaluated. To see the effect of this, observe that your page loads and evaluates the value of your page item, it sees that is "MAIN" and hides the regions. However, it doesn't reevaluate them after this.
    So; your choices to get this value set in the session are to either Submit the page, or use JavaScript to set the value in the session. If you use the latter of these, you'll have to do some further work to cause the visibility tests to be re-run, So, let's stick with with the submit method.
    What you've done above sounds correct for this but, there are a lot of decisions you could have made that might have caused things not to happen in the correct sequence.
    Firstly, let's confirm that what I describe above is your problem. From the development environment, load the page, click the button to change the value and submit. Now, click the link labelled Session. Is it still set to MAIN? If so; this is your issue.
    Let's start with the your After Header computation. Did you set it to *only* run if the current value of your page item is NULL??? If not, that's your problem.
    Load Page -> Item set to 'Main' by Computation -> Click Button -> Item set to STORE -> Submit -> Load Page -> Item set to 'Main' by Computation
    See the problem?
    Assuming this isn't the issue, you created a Branch to the same page, right? What is your process point for the Branch? Is it *After* Validation, Computation etc? Because if not, you aren't changing the value before the submit happens.
    I bet it is the first issue but, take a look at these.
    Cheers,
    -Joe

Maybe you are looking for

  • I have and ipod touch 4th generation and i cannot connect to any wifi, can someone help me with this?

    so this christmas that just assed i got a new ipod touch 4th generation! recently it has fallen and cracked and at the top left corner pieces came off, but after 2 days ago i couldnt get wifi at my house! i do not have a router but i always could get

  • Any possibility for loading and changing XFL/... data at run time of Flash app?

    Hi everybody, I have a quick and general question for the following case: I want to produce some transitions and effects for a kinetic typography project in After Effects and then import these parts into Flash Professional via XFL and Bridge. So my a

  • How to get the user view

    Hi, Can anyone say how to get the user view of a user logged in through admin interface. I have tried to get the roles of logged in user as below: <ref>waveset.roles</ref> it did not work.. Please suggest

  • PAL video looks stretched out in HD project?

    I imported some PAL video, which is 720 x 576 pixels. I am putting this onto a project set to 1920 x 1080. When I put it on the timeline, it becomes stretched out, so the faces look weirdly disproportioned. This seems to happen whether or not I check

  • How can I set roles in Forms?

    I have a user granted with diferents roles, is there any posibility when he log on to the application( IN FORMS) to force him to choose with which role he would wants to work and start the application as if he had been granted only with this role?