Unable to access property variant in contextActions (in StandardListItem)

Hello

I want to pass the values of a listItem to a table by using the context menu, but I can't access the variant of the property within the action item.

I have a listview and in the listView control, I use StandardListItem.

Then, in the StandardListItem, I set my contextActions.

If I try to assign a value I get the error: Error: Invalid write to global property '_contentView'

And if I try to use the property I have error: ReferenceError: can't find variable: _contentView 

This is the section relevent to my QML.

NavigationPane {}
ID: navMain
_contentView variant of property

{Page}
ID: projectsListPage

{Of container

{To ListView
objectName: "projectsList."
ID: projectsList

The used data model defined in the attachedObjects for the list.
dataModel: projectsModel

listItemComponents:]
{ListItemComponent}
type: 'point '.
{StandardListItem}

reserveImageSpace: false
Title: {}
ListItemData.name
}
contextActions:]
ActionSet {}

Title: ListItemData.name
{ActionItem}
Title: "show details".
imageSource: "asset:///images/Edit.png."

onTriggered: {}
var chosenItem = ListItemData;

_contentView = chosenItem;
Console.Debug ("test:" + _contentView.createDate);

projectDetailsClicked (_contentView)
editProjectSheet.visible = true;
}
}

There no problem access to the variant of the property of the ListView signals such as onSelectionChanged so why not in the actionItem?

Your help is appreciated, Thx.

OK I use the solution described here: http://supportforums.blackberry.com/t5/Cascades-Development/QML-Accessing-variables-defined-outside-...

But alas this is not the end of my problems

Tags: BlackBerry Developers

Similar Questions

  • Property variant removes the animations?

    Start at the beginning.

    property variant images
    

    I have my container where I add images to.

    Container {
                id: drawContainer
                layout: AbsoluteLayout {
                }
    }
    

    from there...

        attachedObjects: [
            ComponentDefinition {
                id: imageDefinition
                content: ImageView {
                    imageSource: "cute_cat102.jpg"
                    preferredHeight: imageHeight
                    preferredWidth: imageWidth
                    animations: [
                        TranslateTransition {
                            toX: 400
                            duration: 1000
                        }
                    ]
                }
            }
        ]
    

    I add images dynamically, like this

    var imagesTmp = Array();
            for (var n = 0; n < 3 * numberOfTiles; n ++) {
                imagesTmp[n] = imageDefinition.createObject();
                imagesTmp[n].translationX = getX(n);
                imagesTmp[n].translationY = getY(n);
                drawContainer.add(imagesTmp[n]);
            }
            images = imagesTmp;
    

    So far so good. I can access any of these images and move them if I use images [0] .translationX.

    However, the animations are a problem! They work for imagesTmp but not for images!

    imagesTmp[0].animations // [object Object]
    imagesTmp[0].animations[0].play() // works
    
    images[0].animations // QVariant(QDeclarativeListProperty)
    images[0].animations[0].play(); // TypeError: Result of expression 'images[0].animations[0]' [undefined] is not an object.
    

    I wish I could be able to play animations of images, but as you can see, it won't let me. What I've done wrong?

    I need to have access to the images outside the service in what I create them.

    Hello
    Please try if it works:

    the property list images

  • Unable to access the VPN Client LAN

    I configured a 877 for VPN Client Access. The Client authenticates and connects and receives an IP address off the coast of the pool of intellectual property. However, he is unable to access anything on the IP network.

    I have included my router config. The VPN Client is v5.0.05.0290.

    Any ideas on what I'm missing?

    Can try reverse our ACL VPN-Client, I think that it is written in the wrong way

    For example:

    VPN-Client extended IP access list

    Note * permit VPN Client pool *.

    IP enable any 192.168.201.0 0.0.0.255

    or more precise

    VPN-Client extended IP access list

    Note * permit VPN Client pool *.

    192.168.1.0 255.255.255.0 ip permit 192.168.201.0 0.0.0.255

  • Unable to access e-mail. Password does not. Cannot receive e-mail to resett

    Request password reset. Said that they sent me an email. Unable to access email - this is the problem! What now?

    You confirm the password to webmail providers page by logging in with the user name and password. If they work then you have the correct credentials. When you do that, you need to get a list of the parameters of the server of your provider and check what you have in Thunderbird.
    You can post the Thunderbird troubleshooting info here and let someone to look at the settings you have now. They can spot a problem.
    You know that you are using the right username and password first.

  • Unable to access several sites and install apps in the appstore. A possible malware issue. What should I do?

    Hey guys,.

    I am using a 8 GB Mac Mini with an i5 processor clocked at 2.6 GHz Mac OSX Yosemite 10.10.5 (14F27).

    I don't have problems with this until I visited a torrent site (I hate invited but unfortunately I did this time). Since that unfortunate activity, I get mackeeper pop ups and my search engines by default on all my browsers like Safari, Firefox and chrome automatically replaced by trovi. I can't access to 90% of websites like YouTube except facebook, twitter, Netflix, gmail, google, yahoo and other email clients. I get a "cannot connect" on firefox and messages error 'Safari cannot connect to the server. I checked with the ISP settings and proxy but no problem there as my other devices such as the ipad and the iphone apple work fine on the same wifi network. I erased all the extensions, cookies and cache but without success.

    I am also unable to access the app store to install applications. I wanted to make its own memory and a removal of the malware, but couldn't that since the appstore could not contact the server.

    I mainly use this machine for audio production and browsing through Logic Pro X.

    What is a malware problem? If so, how to fight that? Should I format my HD and upgrade to El Capitan? Who will solve the problem?

    Kindly help.

    See you soon,.

    AR

    Try this first: https://www.malwarebytes.com/antimalware/mac/

    And if it does not help: http://etrecheck.com

  • Connection timed out on the Web site. Tried to delete the cache/cookies. No proxy. Internet Explorer. Unable to access. Help, please. Site Web works.

    I get Connection Timed Out on these Web sites: energy-medicine - software.com and energy - medicine.info. I tried to clear cookies and cache. I put no Proxy. I tried Internet Explorer and are still unable to access. I restarted my computer. I know that this site is active, because I contacted the webmaster and he says that it is active to an end. What else can I do to access this site? Thank you!

    Make a check of malware with several malware scanning of programs on the Windows computer.
    Please scan with all programs, because each program detects a different malicious program.
    All of these programs have free versions.

    Make sure that you update each program to get the latest version of their databases before scanning.

    Alternatively, you can write a check for an infection rootkit TDSSKiller.

    See also:

  • After a few minutes of use, Firefox becomes suddenly unable to access most of the sites.

    Firefox running on the latest version of Fedora, after a few minutes of use, Firefox becomes unable to access many Web sites. It seems to be limited to the Web sites I visit frequently, but it is difficult to say. It affects all sites, however. It also affects the same sites every time. Restart the browser fixes it, and that it will often resolve itself given sufficient time, also.

    I tried to clear my history and cookies, reset the browser and navigation without any active modules, but nothing seems to have an effect.

    Try disabling IPv6.

    Check also for other issues.

    You can try to reset (power off / on) of the router.

  • Firefox is unable to access the internet

    Hello

    Firefox is unable to access the Internet. Internet in the phone works, because all applications in my phone are able to access the Internet. I tried to access several different web pages. Their work. The screen is all black, no error messages appear. The strange thing is that Firefox Sync seems to be able to connect to the server, and I can download plugins.

    Best regards
    Joel Hedestig

    You can try using the beta version of firefox mobile?

    https://play.Google.com/store/apps/details?ID=org.Mozilla.firefox_beta

  • I'm unable to access Apple Store after the iSO download 9.3.1 on iPhone 4S. How can I fix the problem

    I'm unable to access Apple Store after the iSO download 9.3.1 on iPhone 4S. How can I fix this problem?

    What happens when you try to access the Apple Store app?

  • Unable to access app store on iPhone 6 s

    Unable to access app store on iPhone 6 s

    I have no problem with the App Store on my iPhone.

    What happens on your iPhone?

  • I'm unable to access webmail on TalkTalk (formerly Tiscali) using Firefox 5.0 and TalkTalk tell me there is a compatibility issue?

    I have not had any problems with my previous version of Firefox and I can access my Tiscali/TalkTalk webmail using the latest IE browser. I am connect but cannot access the contents of the mailbox. I asked TalkTalk on the problem they have stated that "If you are unable to access the mailbox using Firefox version 5, so I want to inform you that there is compatibility issue with Firefox version 5 and webmail of Talk Talk, thanks to which you found the error above. Alternatively, you can try to uninstall the latest version of firefox, and then reinstall the earlier version to settle the case. "Can I assume that these difficulties will be resolved between you? I would prefer to use Firefox and do not wish to go back to IE.

    Apparently, TalkTalk mail will work with Firefox 4 and 5 of Firefox If you set the browser are to TalkTalk mail saying that you always use version 3.6.

    You can find instructions for this in a post on the forums of TalkTalk: Firefox 4 & TalkTalk webmail - Forums.

    Note: when you open about: config the first time, it will display a warning message that you have to be careful with changes that you make. It's certainly good to keep in mind.

    It work?

  • I'm unable to access Web sites on my iPad

    Last night I updated my iPad with iOS 9.  Since then, I was unable to access the Web sites via Safari.  It gets stuck on the Google page. I turned the iPad and died in new...

    I have the same problem EDT. I thought I did something and I can't understand.

  • I'm unable to access my account

    Hello

    I'm unable to access my account. I have reset my password a lot of time, but it is showing error.

    Please find attachment.

    Thank you

    Jerome singh

    Have you upgraded to the latest version of Skype, which is 4.3.0.37?

  • Unable to access legitimate sites over https

    UTM9S installed at the customer on the demo before the sale.

    I got most of the stuff works except one: workstations are unable to access almost any https sites. The UTM seems to intercept the site certificate and that the right things grind to stop.

    Among the gmail and Bank websites.

    I'm sure that there is a configuration problem, but I can't figure out how to make this work. I have a been able to add sites to the Trusted Sites list, that seems to work, but I can't do that for each unique site!

    Please help - thanks.

    I think I found the answer, but maybe someone more experienced could confirm that it is indeed right.

    Under the Application Security > Services I unchecked Web: Enable HTTPS. It was actually the default, but I misunderstood the screen and makes TIC TACS that more early, which seems to have been the problem.

  • Have new 4th gen tv apple. Home sharing is on. I'm unable to access my music library on my MAC other than a few titles that have been purchased. How to access my entire music library?

    Have new 4th gen tv apple. Home sharing is on. I'm unable to access my music library on my MAC other than a few titles that have been purchased. How to access my entire music library?

    Welcome to the Apple community.

    You wonder if you might be looking at the wrong place. You can watch/listen to house content shared app for computers not the music app.

Maybe you are looking for