To access the values from the row outside the ListView ListItem

Hello

I spent two hours browsing the forums and documentation with no chance of finding a solution on how to access the list item data from outside the listview.

Let explain me my code. It is marked with I work and what does not work and its expected behavior.

Should work behavior


Tapping & getting data

The arrayDataModel is filled with 4 rows. Firstly the list item, second item in the list... etc.

  • Tapping on the order of the day, label with the id of triggeredText displays the value of a threaded list item.
  • The index of the tapped icon appears in the label with the id of triggerredIndex.

Incrementing Index using ActionItems onBar

By pressing action items 'previous' and 'next', you can increment the index value to the label with the id of triggeredIndex. The order of the index is 0-4, even as total of the items in the list.

How to extract data from the index when the value of triggeredIndex?

Buttons

The buttons at the bottom of the screen... Select 1, select the 2nd, 3rd Select should select indexes 0,1,2 of the list and display the value in triggeredText and triggeredIndex. They do not work.

How did I pull the values when you click the buttons?

import bb.cascades 1.3

TabbedPane {
    id: root
    showTabsOnActionBar: false

    Tab {
        id: mainTab
        title: "Test List"
            Page {
                id: mainPage
                titleBar: TitleBar {
                    title: "List Traversal Test"
                }
                actions: [
                    ActionItem {
                        title: "Previous"
                        ActionBar.placement: ActionBarPlacement.OnBar
                        onTriggered: {
                            // get current selected index from list=
                            var currentIndex = parseInt(triggeredIndex.text);

                            if(currentIndex <= 0){
                                //do nothing already at first item
                            }else{
                                // subtract 1 from index ( ci - 1) ?
                                var newIndex = parseInt(triggeredIndex.text) - 1;

                                // show data from new selected index
                                // ???

                                // triggeredItem.text = XXX // the data
                                // ???

                                // triggeredIndex.text = X // the current index
                                triggeredIndex.text = newIndex;
                            }
                        }
                    },
                    ActionItem {
                        title: "Next"
                        ActionBar.placement: ActionBarPlacement.OnBar
                        onTriggered: {
                            // get current selected index from list=
                            var currentIndex = parseInt(triggeredIndex.text);

                            if(currentIndex == 4){
                                //do nothing already at lastitem
                            }else{
                            // add 1 to index ( ci + 1) ?
                            var newIndex = parseInt(triggeredIndex.text) + 1

                            // show data from new selected index
                            // ???

                            // triggeredItem.text = XXX // the data
                            // ???

                            // triggeredIndex.text = X // the current index
                            triggeredIndex.text = newIndex;
                        }
                        }
                    },
                    ActionItem {
                        title: "Clear"
                        ActionBar.placement: ActionBarPlacement.OnBar
                        onTriggered: {
                            // set current index to 0 (top item in list)
                        }
                    }

                ]
                Container {
                    preferredHeight: maxHeight
                    layout: StackLayout {
                        orientation: LayoutOrientation.TopToBottom
                    }

                    Label{
                        id: triggeredItem      // value of listitem from current index
                        text: "0"
                    }
                    Label{
                        id: triggeredIndex    // current index
                        text: "0"
                        onTextChanged: {
                            // set triggeredItem.text to contents of selected ListItem with same index
                            // STUCK HERE cannot access ListItem.dataModel(indexPath) from here....
                        }

                    }
                    Container{
                        ListView {

                            id: theList
                            objectName: "dalist"
                            dataModel: ArrayDataModel {
                                id: theListModel
                            }
                            listItemComponents: ListItemComponent {
                                StandardListItem {
                                    id: itemRoot
                                    title: ListItemData
                                }

                            }
                            onTriggered: {
                                var si = dataModel.data(indexPath);
                                triggeredItem.text = "LIST ITEM CONTENT: " + si;  //set content when user taps on item
                                triggeredIndex.text = "LIST ITEM INDEX INDEX: " + indexPath;  // set index when user taps
                            }

                            onSelectionChanged: {
                                //console.log(selected);
                            }

                            onCreationCompleted: {

                                //add some data to the listview
                                theListModel.append("First List Item");
                                theListModel.append("Second List Item");
                                theListModel.append("Third List Item");
                                theListModel.append("Fourth List Item");
                            }
                        }

                    }
                    Container{
                        layout: StackLayout {
                            orientation: LayoutOrientation.LeftToRight
                        }
                    Button{
                        text: "Select 1st"
                        onClicked: {
                            theList.clearSelection();
                            theList.select(0);

                        }
                    }
                    Button{
                        text: "Select 2nd"
                        onClicked: {
                            theList.clearSelection();
                            theList.select(1);

                        }
                    }

                    Button{
                        text: "Select 3rd item"
                        onClicked: {

                            //expected behaviour is to show data from Third List Item

                            // triggeredIndex.text = INDEX 3
                            // triggeredText.text = (DATA FROM THIRD LIST ITEM)

                            // THIS IS NOT WORKING ....
                            theList.clearSelection();
                            theList.select(2);
                            console.log(theList.dataModel(3));
                            triggeredItem.text = theListModel.dataModel(3);

                        }
                    }
                }
               }
            }
        }//tab
}

Thank you and have a happy and healthy 2015!

Your help will be greatly appreciated.

I ran and got this:

asset:///main.qml:161: TypeError: Result of expression 'theList.dataModel' [bb::cascades::ArrayDataModel(0x1091a838)] is not a function.

But it works

theListModel.data([3])

But this isn't the solution, you have a more serious problem. You select a value, you trigger. If you add this in onTriggered you select it (and you can see that it changes color when it is selected).

theList.select(indexPath);

If you want to use option to deselect

theList.select(indexPath, !theList.isSelected(indexPath));

And if you want to have that one chose this

theList.clearSelection();
theList.select(indexPath);

Inside the button 'Select the 3rd point' allows to select programmatically

theList.select([2]);

It works but I'm not sure what you're trying to do

Tags: BlackBerry Developers

Similar Questions

  • Out of proc - values from multiple rows.

    I have 5 tables. Every table has the following columns

    TRANS_ID,
    USER_ID,
    OPRTN_TYPE,
    STATUS,
    DATE

    I have to write a proc for which an entry is USER_ID and output must be TRANS_ID, OPRTN_TYPE, STATUS, DATE.
    Is it possible to write the proc with the mentioned columns, the values will be more than one row in the table.

    user13024762 wrote:
    I have 5 tables. And I need output of all tables at the same time. If I want to use Ref Cursor I write a cursor for each query with 5 outputs, or I can do it with a single output.

    No, just return a single Ref Cursor
    Is it possible to bring together the tables? As I don't have your database or model, it is difficult to advise you on this.

    You could do something like

    select TRANS_ID,
    USER_ID,
    OPRTN_TYPE,
    STATUS,
    DATE
      from table1
     where user_id = p_parameter
    union all
    select TRANS_ID,
    USER_ID,
    OPRTN_TYPE,
    STATUS,
    DATE
      from table2
     where user_id = p_parameter
    

    and this return as a Ref Cursor

    Thanks for the link refcursor.

    You are welcome.. ;)

  • Get a value from a row in a column

    I have a table contains the following data


    IDStudentclassclasseRoom
    1English3-B3-B
    2nullnull3-B
    3nullnull3-B
    4JackOuMe3-B
    5RichardDSA3-B
    6JhonRoss3-B
    7French3-B3-B
    8nullnull3-B
    9nullnull3-B
    10JackOuMe3-B
    11RichardDSA3-B
    12JhonRoss3-B
    13Spanish5-B5-B
    14nullnull5-B
    15nullnull5-B
    16CenaADI5-B
    17MikeRock5-B
    18PhilippeDSK5-B


    I need a select query to get the result as below:


    IDStudentclassclasseRoomCLASSES
    1English3-B3-BEnglish
    2nullnull3-BEnglish
    3nullnull3-BEnglish
    4JackOuMe3-BEnglish
    5RichardDSA3-B
    English
    6JhonRoss3-BEnglish
    7French3-B3-BFrench
    8nullnull3-BFrench
    9nullnull3-BFrench
    10JackOuMe3-BFrench
    11RichardDSA3-BFrench
    12JhonRoss3-BFrench
    13Spanish5-B5-BSpanish
    14nullnull5-BSpanish
    15nullnull5-BSpanish
    16CenaADI5-BSpanish
    17MikeRock5-BSpanish
    18PhilippeDSK5-BSpanish


    I tried something like this:

    Select ID, STUDENT, CLASS, FIRST_VALUE (STUDENT) IGNORE NULLS above (SCORE FROM CLASSEROOM ORDER BY ID) CLASSES from my_table


    but I don't have the answer


    Thanks for help

    How about this slight adjustment to the solution of Solomon?

    select id,
      student,
      class,
      classeroom,
      last_value(
        case when class = classeRoom then student end
      )
      ignore nulls
      over(order by id) classes
    from  t
    order by id;
    
    ID STUDENT CLASS CLASSEROOM CLASSES
    1 English 3-B 3-B English
    2 null null 3-B English
    3 null null 3-B English
    4 Jack OuMe 3-B English
    5 Richard DSA 3-B English
    6 Jhon Ross 3-B English
    7 French 3-B 3-B French
    8 null null 3-B French
    9 null null 3-B French
    10 Jack OuMe 3-B French
    11 Richard DSA 3-B French
    12 Jhon Ross 3-B French
    13 Spanish 5-B 5-B Spanish
    14 null null 5-B Spanish
    15 null null 5-B Spanish
    16 Cena ADI 5-B Spanish
    17 Mike Rock 5-B Spanish
    18 Philippe DSK 5-B Spanish
  • Add the value of table row selected PageFlowScope so that I can access taskflow

    Hi all

    Facing a problem of getting a value from a table ADF selected line to a taskflow that appears as an inline popup. Here's the scenario. I have a vision that shows a table. When I click on an edit btn I display my taskflow as an inline popup. What I would do, is to take the line of the selected table, remove lets say the value of line name and pass it on to my taskflow for display. I tried this value within an mbean settting when I click the btn edit using:
            AdfFacesContext.getCurrentInstance().getPageFlowScope().put("editTargetNameSource", targetName);
            String tmpClear = (String) AdfFacesContext.getCurrentInstance().getPageFlowScope().get("editTargetNameSource");
    That seems to get together, but when I try to enter this value using EL inside my page of jspx taskflow it seems to be not defined.
     <af:outputLabel value="Selected Row" id="ol1"/><af:outputText value="#{pageFlowScope.editTargetNameSource}"
    It seems that pageFlowScope for my taskflow popup! = pageFlowScope for page my table saw to. I tried to put this as a parameter of the entry page, but I have the feeling that I missed something. I wish I could set this value within my bean when a user clicks the edit btn and then display that value in my taskflow popup.


    Any help is appreciated,
    -Wraith

    RequestContext requestContext = RequestContext.getCurrentInstance ();
    requestContext.getPageFlowScope () .put ("editTargetNameSource", targetName);

  • Access a button from outside the service

    I created a few buttons (which are really the movieClips) who all instances named button1, button2, etc..  So, I created a loop For and put an addEventListener inside for a roll over.  The problem is the function called in the listener indicates the key to access the frame 2, but there is no way to tot Hat specific call button.  Here is the code:

    for (k = 1; k < 17; k ++)

    {

    This ['button_' + k] .addEventListener (MouseEvent.ROLL_OVER, buttonRollOver);

    }

    function buttonRollOver(event:MouseEvent)

    {

    XXXXXXXXX.gotoAndStop (2);

    }

    Where is said "XXXXXXXX" is my problem.  How to identify the button that is put in place at the course?

    use:

    for (k = 1; k<17;>

    {

    This ['button_' + k] .addEventListener (MouseEvent.ROLL_OVER, buttonRollOver);

    }

    function buttonRollOver(event:MouseEvent)

    {

    MovieClip (event.currentTarget) .gotoAndStop (2);

    }

  • How to access the data in the row (text of children) in a pragmatic control tree?

    In LabVIEW 2010, I entered the data in row a tree with pragmatism control using the Add item and providing the child text table and the child tag for the line. When a row in the tree control is selected, I can get the line label in the Value property of the tree. But how do I access the data in the child text table when the line is selected? I can't seem to find a tree control property or method which will return data back.

    What I'm trying to do is: once a line in a tree is selected and a button is pressed, if the line tag is valid, I want to transfer all the data in row in another tree the same formatting. For this I need the data for the tree line and the line that was selected. I don't find a way to get access to these data of the line when it was composed in the tree.

    Can someone tell me how to access pragmatically the child text or row data in a tree control from a selected line in the tree? I have the label of the line, but how do I access data?

    Thank you for your help.

    Looking through numerous examples, I found how to do this using the properties ActiveItemRow and ActiveColNum, but I can't find these documented properties anywhere using LabVIEW. Even research through aid could not do anything about them.

    Where these important parameters are documented?

    Why they do not appear in the help?

    Are there other ways to access the data in the row (child text) form a selected line in a tree control?

  • Iterator binding: access the value of a column

    Hello

    Is there a way to access the value of a specific column from an af:table by EL, using the iterator binding? I know how to do this by adding an < attributeValues > affair in the pageDef file. But I'm just curious to know if it is possible without this 'thing '.

    For example, suppose we have a table, linked to a view object:
    <af:table id="t1" value="#{bindings.Employees1.collectionModel}" var="row" ...>
      <column headerText="Emp Id" id="c1" ...>
        <af:outputText value="#{row.EmployeeId}" id="ot1" .../>
      </column>
    </af:table>
    And below, a simple command button:
    <af:commandButton text="test button"/>
    Now, how can I set the disabled property of the CommandButton to be true, THAT when the selected row in the table has an EmployeeId of 200? So what I would do:
    <af:commandButton text="test button" 
    disabled="#{bindings.Employees1.collectionModel.currentRow.EmployeeId eq '200'}"/>
    But so far, I have not found the correct EL expression to do. I realize that it is quite an abstract example, but it is a concept that I need a lot, and I wonder what is the cleanest solution... :-)

    Thank you!

    Chris

    Published by: Chris Schryvers on December 1st, 2009 03:22

    Hi Chris,

    .... I use JDev 11.1.1.2.0...

    I have to do this:

    1. drag an EmployeeId (from your display in your dataControl) in the page as an outputText.
    2. make this false outputText visibility.
    3. in your Disabled property wirte commandButton control this EL:
    #{bindings. EmployeeId.inputValue is '200'}
    Or
    #{bindings. {EmployeeId.inputValue-eq ' 200'}.
    PartialTrigger 4-set of the outputText and the CommandButton with the table ID.

    your command button will be like this:


    ID = "cb1".
    Disabled = ' #{bindings. " EmployeeId.inputValue is '200'}'
    partialTriggers = "t1" / >

    Sameh Nassar

  • Call the function in LabView from a DLL, and then access the global variable of DLL

    I've created a DLL in LabWindows with a function and structure.  I want to call the function from LabView and then access the overall structure.  I am able to call the function in the DLL with a "call library function node" and has access to the return value, but I can't understand how to access the overall structure.  The structure is declared in the header DLL with __declspec (dllimport) struct parameters file.

    Is it possible to access this structure without using the library of network variables?

    My guess is that you need two bytes of padding after "in_out" and another to two bytes of padding after "anin."  The reason being that ints are 4 bytes, and most of them C compilers will align on 4-byte boundaries.  The struct will naturally start to such a limit (in fact, in Windows, it will probably start to an 8 byte boundary).  If you then count bytes in your structure, you are 70 byte after "in_out."  70 is not divisible by 4, so you need 2 bytes more to reach the next 4 byte boundary.  You can also you could reorganize your struct so that "anin" follows "in_out" and this is probably the best option if it won't cause you other problems.

    Unlike most C compilers, LabVIEW compressed structures as closely as possible, without filling.  I don't know enough about the history of LabVIEW and internal parts to explain the reasons and to do this performance penalty, but, as choice of LabVIEW "endianness", it is probably a remnant of the first versions of LabVIEW that were running on the Mac.

    If for some reason you want to force your C struct to match package LabVIEW, you can use the #pragma pack (x) directive, but I wouldn't recommend that here because you can control the C and LabVIEW.

    EDIT: in the cases where it was not clear, add padding to your cluster of LabVIEW, insert appropriate size or items at the place desired in the cluster.

  • Unexpected end of VI after the acceptance of 3 lines of values from a serial port, transmitting continuous data.

    Hello

    I am currently working on the acquisition of data from a unit of 2 balls of hair, installed with a Zilla controller on an electric vehicle. Hairballs allows other devices to the device through a serial port. The option of data acquisition for displays information like speed, tension etc.

    I use Teraterm, a terminal Communicator to start communication with the device of hairballs. After having sailed in the various menus, I can access the DAQ feature that provides data continuously to the status of the various components of the vehicle. I saved the logfile of teraterm (Teraterm - Results.txt). 5B 01 0b C8 03 53 02 39 27 OMFS is, for example, a sample of data from the module of data acquisition.

    When the port is configured to send these data, I close the program Teraterm and run the LabVIEW VI (read and Write.vi series). It accepts 2-3 rows of data (error LabVIEW - 2.jpg In Motion) and then stops. I know there is a message of error involved, but I think that its storage in what concerns the information in the file (this is another problem, I need to resolve, the file is always empty).

    Could someone help me with this problem please. Why the software ends the execution after only 2-3 loops. Sometimes he starts to accept data from the middle (@ 1 0b C8 03 53 02 39 27 OMFS for example) and stops after displaying the it.

    If there is information required please let me know.

    Thanks in advance.

    The error you get is:

    1073807252 VI_ERROR_ASRL_OVERRUN A time-out error occurred during the transfer. A character not read in the material before the arrival of the next character.

    Your buffer is probably full of data.

    See here and here for possible solutions.

  • Can't access the files from the HARD drive of any account on the windows computer 7

    Hello

    When I tried to connect my Western digital external hard drive to a 32-bit desktop P 3 with a Windows XP SP1, then this HARD drive is not detected. Then I tried to copy his WD driver ITS a USB Flash drive, then isntalled all the WD HARD drive was always plugged into my computer. After that, the HARD drive was identified by computer and appear in my computer. As I thought that this folder has been created by the installation of the driver, did not exist on my HARD drive before connected to the desktop computer.

    When I plugged my WD HDDagain to my laptop HP with Windows 7 SP1 64 bit and I tried open this folder, and then the main folder only opened without facing access denied, however, access to all of its subfolders, and the files inside it has been declined.

    In addition, althoguh the username admin Curernet "Mohammad" can open the folder of human "83f04ce083fb03083bb88e50", as shown in the screenshot above, it can not access all of the subfolders, files in the main folder, and to access, I will need to use the scecurity tab. Thus, it would be absolute nonsense, if I want to have access to all of the subfolders, I will need to use the security for each tab.

    How do I gain access to all of the subfolders with use of the Security tab once the time (i.e. as long as all subfolders are inside the main folder, then simply use the main folder security tab?

    As long as the current username "Mohammad" can open the folder of "83f04ce083fb03083bb88e50" man, "Mohammad" is so allowed system to have access to the main folder as shown in the screenshot above, then I think that the username 'Mohammad' will have to reach all subfolders as well. However, when you try to open any subfolder or file, then the current user 'Mohammad' name could not have access to all of the subfolders in the main folder and all subfolders or files opening gave me this error below (screenshots below)

    I tried to remove this main folder, however, each time, I found myself with a loop "you need permission SYSTEM to make changes to this file.

    Original title: file access denied

    Groan.  It is so easy to fix, and you should have gotten a lot better support now.  Surprisingly, the worst suggestion came directly from the "Microsoft Support Engineer" Reda Singh, his suggestion potentially compromising the security of your computer while doing absolutely nothing to solve the problem.  Fortunately, it seems like you didn't do something quite right and so the script was not run.

    First of all, let me explain why this difficult access occurs in the first place.  Originally, you had three 'users' granted access to training, SYSTEM, Administrators, and MohammadSYSTEM allows Windows to read your disk, and retrieve things like its label.  It can also allow your antivirus software to access the drive.  Because this OPTION is enabled, Administrators is not accomplish anything, even if you are an administrator.  As long as this OPTION is enabled, this permission only works for programs, that you manually raised to run as administrator.  This leaves access to the drive depend on the last entry, Mohammad.  The problem is the SID behind Mohammad is only good on the computer, it was created, so if you connect this HARD drive on another computer, no access is allowed!  Enter the security on the other computer dialog box, you can either see something "could not read permissions" or you will see the SYSTEM, directorsand a third entry with a long series of numbers.  It's your first computer Mohammad , and it will not work on another computer.

    It is not surprising that you're facing this problem because you are using the drive on multiple computers, which is running XP that is not UAC.  Here's how to unlock a storage drive (in Windows 7) so that it can be normally accessed in any PC without any permissions problem:

    1. Press [Windows] (or click on the circles to start), and then type "user account control".
    2. In the search results, click on "change user account control settings."
    3. Drag the slider to "never notify".
    4. Click [OK] to confirm the changes and restart your computer.
    5. Open Windows Explorer, right-click on the affected drive, and then click Properties -> Security (tab)-> [Advanced]-> owner (tab)-> [change].
    6. You should be on a dialog box that asks what you want to change the owner.  Click on Administrators.
    7. Check Replace owner of subcontainers and objects, and click [OK].  Windows should start processing all the files on the disc.  This may take a few minutes.
    8. When it's done, click [OK] to close the property message and then close out of all other dialog boxes.
    9. In Windows Explorer, click the drive affected again, and then click Properties -> Security (tab)-> [Advanced]-> [edit permissions].
    10. Now in the dialog box Advanced security settings , click the button [delete] repeatedly to remove all permission entries.
    11. Add SYSTEM and grant full control.
      1. Click on [Add...].
      2. Type 'SYSTEM' and press [Enter].
      3. Check full control in the allow column and press [Enter].
    12. Add Administrators and grant full control.
    13. Add users and grant Full control.
    14. In the dialog box Advanced security settings , you should have three entrances of permissions: SYSTEM Administratorsand users, all granted full control.  Check "Replace all permissions of child object with permissions inheritable from this object" and click [OK].
    15. Click [Yes] to confirm the replacement of permissions.  Again, Windows start to process all files on the disk, which may take a few minutes.
    16. When he finishes, close to all the dialog boxes and check that all records are now accessible.  You may have to refresh (or close and reopen) explore to see the changes.
    17. Assuming that it worked, we will re-enable UAC to reduce the vulnerability of temporary security, that we created earlier.  Press [Windows] and then type 'user account control '.
    18. In the search results, click on "change user account control settings."
    19. Drag the slider to the position below the top (position #2, by default).
    20. Click [OK] and restart your computer.  Now, the files remain accessible.

    This should straighten the permissions of your disk storage so that you can use it again.  You may need to empty the trash on this drive after changing permissions.

    Don't do this procedure on your C:\ drive, it will seriously reduce the security of your Windows installation.  This is for the readers of storage only.  If you need access to a specific file that you created to C:\, you can safely do the steps above on this issue, but never on the C:\ drive itself.  Please note that when you perform this procedure on a folder instead of a hard drive, you will need to replace this step #10:

    10. now in the dialog box Advanced security settings , uncheck the box "Include permissions can be inherited from the parent to this object" and click [delete] to confirm.  If some permission entries remain, click [Remove] until they are all gone.

    The concept is the same in Windows Vista, even if the exact steps differ from the foregoing at least Windows 8.  In Windows 8, you must also disable UAC with a registry tweak because, unlike Windows 7, UAC remains on even when the value of "Never notify", giving rise to all sorts of problems in Explorer tries to work with file permissions.

    Oh and to answer one other question I saw you ask from the beginning: this folder of the .net Framework was created by .net Framework Installer.  He breaks all the rules and frustrating unpacks his junk everywhere where it feels like.  I got it decompress on a front SD card, making the installation would take forever.  After installing the .net Framework, you probably disconnected the drive before restarting your computer, so these files let me.  Or the installation crashed and started you again.  Meanwhile, installs the failure left its Temp files behind.  It was supposed to remove the folder when the installation is complete.  You can remove safely as the folder manually.

  • Cannot access the Web server in the DMZ from the inside using IP global

    Hi all

    I hope it's a very simple question.

    I'm running a PIX 515 firewall v6.3. I set up a Web server in my DMZ and use static NAT for re-branded it overall static IP address. Access from the outside of the demilitarized zone works remarkably well. I can access inside the interface Web site using the internal IP, but I can't access it from inside interface using the global IP are entrusted to him.

    Is there a particular reason why this would not be allowed? My feeling was that the request would be forwarded via the external interface (as it is a global IP address) and then be bounced back by my sense of the ISP the request would come to the new external interface (as the static NAT is applied to the external interface).

    However if I try and access the global IP from my inside interface, then the browser can not find the server.

    can someone explain why this is so? Any information would be appreciated.

    see you soon,

    Wayne

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

    6.3 (3) version PIX

    interface ethernet0 100full

    interface ethernet1 100full

    interface ethernet2 100full

    ethernet0 nameif outside security0

    nameif ethernet1 inside the security100

    nameif dmz security50 ethernet2

    hostname helmsdeep

    domain p2h.com.sg

    fixup protocol dns-length maximum 512

    fixup protocol ftp 21

    fixup protocol h323 h225 1720

    fixup protocol h323 ras 1718-1719

    fixup protocol http 80

    fixup protocol they 389

    no correction protocol rsh 514

    fixup protocol rtsp 554

    fixup protocol sip 5060

    fixup protocol sip udp 5060

    fixup protocol 2000 skinny

    fixup protocol smtp 25

    No fixup protocol sqlnet 1521

    fixup protocol tftp 69

    names of

    acl_out list access permit tcp any host 203.169.113.110 eq www

    access-list 90 allow the host tcp 10.1.1.27 all

    pager lines 24

    debug logging in buffered memory

    Outside 1500 MTU

    Within 1500 MTU

    MTU 1500 dmz

    IP address outside pppoe setroute

    IP address inside 192.168.1.1 255.255.255.0

    dmz 10.1.1.1 IP address 255.255.255.0

    no failover

    failover timeout 0:00:00

    failover poll 15

    No IP failover outdoors

    No IP failover inside

    no failover ip address dmz

    location of PDM 202.164.169.42 255.255.255.255 inside

    location of PDM 202.164.169.42 255.255.255.255 dmz

    location of PDM 10.1.1.26 255.255.255.255 dmz

    location of PDM 10.1.1.26 255.255.255.255 outside

    location of PDM 172.16.16.20 255.255.255.255 outside

    location of PDM 192.168.1.222 255.255.255.255 inside

    history of PDM activate

    ARP timeout 14400

    Global 1 interface (outside)

    Global (dmz) 1 10.1.1.101 - 10.1.1.125

    NAT (inside) 1 0.0.0.0 0.0.0.0 0 0

    NAT (dmz) 0-list of access 90

    NAT (dmz) 1 0.0.0.0 0.0.0.0 0 0

    static (dmz, external) 203.169.113.110 10.1.1.27 netmask 255.255.255.255 0 0

    Access-group acl_out in interface outside

    Timeout xlate 03:00

    Timeout conn 01:00 half-closed 0:10:00 udp 0: CPP 02:00 0:10:00 01:00 h225

    H323 timeout 0:05:00 mgcp 0: sip from 05:00 0:30:00 sip_media 0:02:00

    Timeout, uauth 0:05:00 absolute

    GANYMEDE + Protocol Ganymede + AAA-server

    RADIUS Protocol RADIUS AAA server

    AAA-server local LOCAL Protocol

    Enable http server

    http 192.168.1.222 255.255.255.255 inside

    enable floodguard

    string fragment 1

    Console timeout 0

    Terminal width 80

    Code v6 pix or less don't let you have traffic "back" or return flow via the same interface on which it was sent. Having also your bounce back off of an external server traffic is never a good idea, because you won't be able to distinguish which and rogue attacks by spoofing someone outside your network.

    Since you are using pix 6.3 code, you may be able to outside the NAT. Add this static to your config:

    static (dmz, upside down) 203.169.113.110 10.1.1.27 netmask 255.255.255.255 0 0

    You may need to run a clear xlate after adding the new static statement. Note that the interfaces: it's demilitarized zone, inside inside, dmz.

    I would like to know if it works.

  • Access a value to a variable which is a bean to any place in the application of adf.

    Hello

    I am very new to the ADF.   I'm fighting on access to a variable in another form of bean a bean. My script is as below.

    I have a stubborn workflow. He has a page that has a text field and a button. I have a bean that brought the application. The bean has action method setTextInput(). When the user enters text in the text field and click on butoon methd of bean is called. I am able to get the text entered in my method of bean. I want the text user enterd the value value in a variable of the bean and its value access from ANY WHRE we will ' say to another bean of scope of the request in the workflow of the application of the adf. So could you please help me on this. It is very urgent. I think that this is a common use case.so adf expert can help me easily.

    --

    Your idea is to store the user on a bean to support State, and is not exactly a best practice in the ADF, if you are using business components.

    You can create a transitional field in one of your ViewObjects and in this way, you can access the value from anywhere in the application.

    Creation of an attribute of the transitional View object is simple, you can find an example here:

    http://oralution.co.uk/site/2013/08/07/ADF-tutorial-transient-attributes-and-how-to-populate-them-part-1/

  • Cannot access the value of parameter task flow when type java.lang.string

    Hi all

    I use Jdev 11.1.1.6.0 version.

    Here's the scenario. I enclose the workspace.

    A taskflow (testScope1TF) simply have 2 obligatory parameters corresponding type is String and ArrayList.

    This stubborn taskflow placed as a region in a pop up (p1) in a fragment (testScope2Fragment.jsff).

    Have a command to link to testScope2Fragment.jsff and from there, I'll put the value of the parameter.

    Pop until I can access the value of the ArrayList, but for string, it is show null. However all these setting set the same bean. What is the reason for the string parameter showing null?

    Can anyone help to understand this strange behavior.

    Here is the link to sample workspace

    https://drive.Google.com/file/d/0b-8Suq_hutEhNE01blZFUnlQdzQ/view?USP=sharing

    To run the example - ScopeTestPage.jspx run-> click on commandLink 1 -> press the commandButton control pop up 1.

    In output integrated wls console like below.

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

    Table list size: 2

    String value parameter: null

    Here's the code-testScope2Fragment.jsff.

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1" "

    ' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "" "

              xmlns:f=" http://Java.Sun.com/JSF/core ">

    < af:panelStretchLayout id = "PSL1" >

    < f: facet name = "center" >

    < af:panelGroupLayout layout = "scroll".

                               xmlns:af=" http://xmlns.Oracle.com/ADF/faces/rich "" "

    ID = "pgl1" >

    < af:commandLink text = ' commandLink 1 ' id = 'cl1' partialSubmit = 'true '.

    actionListener="#{viewScope.TestScope2Bean.tesctScope2Method}"/ >

    < af:popup id = binding = "#{"p1"viewScope.TestScope2Bean.viewScopePopUp}" >

    < af:dialog id = "d1".

    title = "Pop of the scope on the view upwards the Value: #{viewScope.TestScope2Bean.testScopeView String}" >

    < af:region value = "#{bindings.testScope1TF1.regionModel}" id = "r1" / > "

    < / af:dialog >

    < / af:popup >

    < / af:panelGroupLayout >

    <!-id = "af_one_column_stretched"->

    < / f: facet >

    < / af:panelStretchLayout >

    < / jsp:root >

    public class TestScope2Bean {}

    String testScopeView = null;

    ArrayList < String > testScopeViewList = new ArrayList < String > ();

    Private RichPopup viewScopePopUp;

    public TestScope2Bean() {}

    Super();

    }

    public void tesctScope2Method (ActionEvent actionEvent) {}

    Add the code in the event here...

    this.setTestScopeView (In ViewScope Test");

    testScopeViewList.add ("sjdjshdsj");

    testScopeViewList.add ("cdsfdsfsf");

    RichPopup.PopupHints applyHoldspopUpHints = new RichPopup.PopupHints ();

    this.getViewScopePopUp () .show (applyHoldspopUpHints);

    }

    {} public void setTestScopeView (String testScopeView)

    this.testScopeView = testScopeView;

    }

    public String getTestScopeView() {}

    Return testScopeView;

    }

    {} public void setViewScopePopUp (RichPopup viewScopePopUp)

    this.viewScopePopUp = viewScopePopUp;

    }

    public RichPopup getViewScopePopUp() {}

    Return viewScopePopUp;

    }

    {} public void setTestScopeViewList (ArrayList < String > testScopeViewList)

    this.testScopeViewList = testScopeViewList;

    }

    public ArrayList < String > getTestScopeViewList() {}

    Return testScopeViewList;

    }

    }

    Thanks in advance.

    I took as look at your code. The problem is that you use a popup in the region and regions have a bit different (refer to http://www.oracle.com/technetwork/developer-tools/adf/learnmore/67-queryform-in-popup-253861.pdf) in the regions. Must be addressed the refreshment of the ifNeeded region to make your sample (see image below):

    Timo

  • Procedure with the DML statements that insert values from 1 to 100 in only one table and it is matching word equivalent in the other

    Can someone help me create a procedure with the DML statements that insert values from 1 to 100 in a table "abc" and the procedure must connect the numbers into words in another table "xyz" without doing a commit explicitly. "."

    Currently on trial...

    SQL > create table abc (num number);

    Table created.

    SQL > create table xyz (num varchar2 (100));

    Table created.

    SQL > ed
    A written file afiedt.buf

    1. insert all
    2 values of 1 = 1 then in abc (num) (l)
    3 when the values of 1 = 1 then in xyz (num) (to_char (to_date(l,'j'), 'jsp'))
    4 * Select the level from dual connect by level<=>
    SQL > /.

    200 rows created.

    And the result...

    SQL > select * from abc;

    NUM
    ----------
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    ..
    ..
    ..
    98
    99
    100

    100 selected lines.

    SQL > select * from xyz;

    NUM
    ----------------------------------------------------------------------------------------------------
    one
    two
    three
    four
    five
    six
    seven
    eight
    nine
    ten
    Eleven
    twelve
    ..
    ..
    ..
    98
    Nineteen eighty
    Cent

    100 selected lines.

  • cannot access the rows of a table not nested element

    What Miss me? I'm under Oracle 12 c (12.1.0.1.0)

    CREATE TYPE dim_O AS OBJECT )

    dimension_id number

    label_en varchar2()300( )

    );

    CREATE TYPE dim_T AS TABLE OF dim_O;

    DECLARE

    dims_t dim_T

    START

    SELECT CAST(MULTISET( )) 

    SELECT  DIMENSION_ID LABEL_EN

    DE    DIMENSIONTABLE -actual physical table in oracle

       DIMENSION_ID IN (3001 3002 3003()

    ) AS dim_T) "dim_rec"

    BY dims_t

    DE    DOUBLE;

    FOR I IN dims_t. FIRST... dims_t. LAST LOOP

    DBMS_OUTPUT. Put_line() dims_t() I). dimension_id);

    END LOOP;

    -exit from the loop above is

    -3001

    -3002

    -3003

    -The following statement fails: cannot access the rows of a table not nested element

    UPDATE TABLE ( SELECT dimension_id FROM TABLE (dims_t) ( )

    Dimension_id SET = WHERE = dimension_id 3004 3003

    -The following statement fails: cannot access the rows of a table not nested element

    UPDATE TABLE ( SELECT dimension_id FROM TABLE (CAST (dims_t in dim_T () ) ( )

    Dimension_id SET = WHERE = dimension_id 3004 3003


    END;

    I'm trying to understand this example very simple, but to no avail.

    Can someone tell me why I get this error?

    Thank you all in advance for your time.

    Marc

    What Miss me? I'm under Oracle 12 c (12.1.0.1.0)

    CREATE TYPE dim_O () AS OBJECT

    number of dimension_id

    label_en varchar2 (300)

    );

    CREATE TYPE dim_T AS TABLE OF dim_O;

    DECLARE

    dims_t dim_T;

    BEGIN

    SELECT CAST (TYPE MULTISET)

    SELECT DIMENSION_ID, LABEL_EN

    OF DIMENSIONTABLE -actual physical table in oracle

    WHERE DIMENSION_ID IN (3001,3002,3003)

    () AS dim_T) 'dim_rec '.

    IN dims_t

    FROM DUAL;

    I'm IN dims_t.FIRST... dims_t.Last LOOP

    DBMS_OUTPUT. Put_line(dims_t (i) .dimension_id);

    END LOOP;

    -exit from the loop above is

    -3001

    -3002

    -3003

    -The following statement fails: cannot access the rows of a table not nested element

    UPDATE TABLE (SELECT dimension_id FROM TABLE (dims_t))

    SET dimension_id = dimension_id = 3003 3004 WHERE;

    -The following statement fails: cannot access the rows of a table not nested element

    UPDATE TABLE (SELECT dimension_id FROM TABLE (CAST (dims_t as dim_T)))

    SET dimension_id = dimension_id = 3003 3004 WHERE;

    END;

    I'm trying to understand this example very simple, but to no avail.

    Can someone tell me why I get this error?

    You get it because dims_t is an array of OBJECTS - not a table of scalars. But your SELECT statement returns scalar.

    There IS NO such object, named "dimension_id"; It is an ATTRIBUTE of the object DIM_O. DIMENSION_ID is a SCALAR which, as says the exception, is a "No nested table element; If you cannot select/Update lines of it.

    What you do is equivalent to the following:

    DECLARE

    dims_t dim_T;

    number of dim_id;

    dim_o design;

    BEGIN

    Design: = dim_o (3, 'ghi');

    SELECT DIM_O (DIM_ID, LABEL) BULK COLLECT INTO table DIMS_T (d_o);

    end;

    /

    ORA-06550: line 7, column 59:

    PL/SQL: ORA-22905: cannot access the rows of a table not nested element

    ORA-06550: line 7, column 1:

    PL/SQL: SQL statement ignored

    This SELECTION is trying to design it as a table when it's a SCALAR - so the same exception you get.

Maybe you are looking for