normal text with the label in the list view
I want to show a normal label with text belonging not to the list (ListItemData) and also a title which is ListItemData.title.
I'm not able to get it working with the code below. IM able to see that the title not the other text.
It works now. In my original code I gave ListItemComponent type as well as someother name. Change it to the "article", it works.
Tags: BlackBerry Developers
Similar Questions
-
With the help of QProperty for a label inside the list view
Hello
I wanted to assign the value of a label in the list view to a string QPROPERTY. I did it using Qt.myname = _app. QPropertyName. And Qt.myname attributed to label.
It updates correctly during installation. But if I change the value, it is not updated within the display list, but working in another label that is outside the view of the list.
It works for me
ListView { property string myCppProperty: app.cppProperty listItemComponents: [ ListItemComponent { Container { id: listItemContainer Label { text: listItemContainer.ListItem.view.myCppProperty } } } ] }
-
changing value of text with the cursor
Hi you all
I need a help from your side
I have created a slider and change the size of the listview text with the cursor
Here is my code
Slider { id: slider fromValue: 8.0 toValue: 16.0 value: 8.0 layoutProperties: StackLayoutProperties { spaceQuota: 0.1 } preferredWidth: 200.0 maxWidth: 250.0 preferredHeight: 20.0 visible: true enabled: false horizontalAlignment: HorizontalAlignment.Center onImmediateValueChanged: { // descriptionText is the id of label descriptionText.textStyle.fontSize = FontSize.PointValue descriptionText.textStyle.fontSizeValue = immediateValue } } /***********************************************************************// i am adding data to listview using remote source Container { id: listviewContainer layout: StackLayout { } ListView { id: myListView1 dataModel: dataModel1 //{ // source: "asset:///models/xmldata.xml" // } // Use a ListItemComponent to determine which property in the // data model is displayed for each list item listItemComponents: [ ListItemComponent { type: "item" Container { rightPadding: 20 leftPadding: 20 horizontalAlignment: HorizontalAlignment.Center verticalAlignment: VerticalAlignment.Center layout: StackLayout { orientation: LayoutOrientation.TopToBottom } Container { topPadding: 40 horizontalAlignment: HorizontalAlignment.Fill layout: DockLayout { } // The Item content container Container { verticalAlignment: VerticalAlignment.Top horizontalAlignment: HorizontalAlignment.Right layout: StackLayout { orientation: LayoutOrientation.RightToLeft } } } // Description text label Label { id: descriptionText // // objectName: descriptionText // leftMargin: 20 horizontalAlignment: HorizontalAlignment.Right verticalAlignment: VerticalAlignment.Top text : ListItemData.des textStyle.color: Color.create("#868686") textStyle.textAlign: TextAlign.Justify multiline: true textFormat: TextFormat.Plain textStyle.fontSizeValue: 8.0 } } } ] } attachedObjects: [ GroupDataModel { id: dataModel1 // Sort the data in the data model by the "pubDate" field, in // descending order, without any automatic grouping sortingKeys: [ "date" ] //[ "pubDate" ] sortedAscending: false grouping: ItemGrouping.None }, DataSource { id: dataSource1 objectName: "" // Load the XML data from a remote data source, specifying that the // "item" data items should be loaded source:"http://10.121.10.139/simplehtmldom/getdescnews.php?newsid="+dataSource1.objectName query: "/news/property/" type: DataSourceType.Xml onDataLoaded: { // After the data is loaded, clear any existing items in the data // model and populate it with the new data dataModel1.clear(); dataModel1.insert(data) myIndicator12321.setRunning(false); myIndicator12321.setVisible(false); // dataModel.insert(data) } } ] } // in the end i am calling on creating complete onCreationCompleted: { // When the top-level Page is created, direct the data source to start // loading data dataSource1.load(); }
problem I am facing is, it does not find the descriptionText variable, which is the id of the label
can someone help?
OK, the problem is that listItemComponents attached to a control, such as ListView have their own context. ListItemComponent documentation refers to what I think. If you must do the following:
1. do you have a property that is defined as an attribute of the ListView
2 bind your fontSizeValue to listItemComponent tag to the ListView. Note, however, to do this, you need to get a reference to the ListView using your label ListItem.view is found in the container. Not obvious, I know.
3. do you have your cursor to update the property you have defined for the ListView.
Cursor---> p_font_size ListView property<---------->---------->
Like this:
{To ListView
ID: myListView1
property real p_font_size: 10listItemComponents:]
{ListItemComponent}
type: 'point '.
ID: sample{Of container
ID: mainListViewContainer{Label
ID: descriptionText..........
textStyle.fontSize: FontSize.PointValue
textStyle.fontSizeValue: mainListViewContainer.ListItem.view.p_font_size}
and elsewhere on your page
Slider {}
ID: sliderfromValue: 8.0
toValue: 16.0
value: 8.0
layoutProperties: {StackLayoutProperties}
spaceQuota: 0.1
}
preferredWidth: 200.0
maxWidth: 250,0
preferredHeight: 20.0
visible: true
enabled: true
horizontalAlignment: PonImmediateValueChanged: {}
myListView1.p_font_size = immediateValue
}
}I test it and it works. Please make this response as the solution if it works for you too :-)
-
Text with the letters No. and TM sometimes display as exhibitor.
On some web pages, words that begin with the letters NOT or include TM were part of the word displayed as an exhibitor. For example, if the sentence starts with the Word no, the part not of the word has triggered o and stressed that it is an abbreviation for the word number. A reference as STM32F103 number will have the letters TM raised as if it were an abbreviation for the word mark.
I tried to place different fonts and found that specifically put a font while not allowing the site to replace, it avoids the problem. Unfortunately some sites use characters that I can't identify just, so I normally run with the option to allow pages to choose their own fonts, instead of using fixed fonts.
On ebay, for example, I have the problem with the characters superscript. I tried to use Google Chrome is a point of comparison and found that the pages display correctly with chrome, but not with Firefox. Search on Google or Yahoo gives me a results page that does not have the characters superscript.
Is there something that I am missing in the configuration of Firefox which is the cause? I need like sites to choose their own fonts, because otherwise I find myself with looking for very strange pages (even weirder to have numbers or TM poster evil).
What the font is used for these characters?
You right click on a web page and select "Inspect element" to open the Inspector (Firefox/tools > Web Developer).
- You can check the font used for the text selected in the tab fonts in the right pane of the Inspector.
You can try different default fonts temporarily disable fonts site to test the selected default font.
- Edit > Preferences > fonts and colors of content > advanced
- [] 'Allow pages to choose their own fonts, instead of my selections above'
You can do a test of fonts to see if you can identify not police work.
-
How to display very large text with the font size?
I'm using html and css to display large text with the font size.
Label { text: "Acit" }
In the image below, it is the largest size, although I try to increase the value of the size of the font. Do you know how to display the largest font size?
Thanhks
You should be able to amplify it upward with scaleX/scaleY properties, although no doubt quality will suffer somewhat (but probably not significantly, for most people).
-
Siri in him sending text with the value 'NULL '.
When I say, "Siri, text my wife, 'X', ' Siri responds correctly,"here is your message to Jill: 'X'. "" " "Ready to send it?" I say 'Yes' and sends the message. As soon as I get a text from my carrier saying the recipient of the message was invalid. 100% of the time, I see that Siri has sent a text with the value NULL.
I tried to restart my phone. I tried to remove and re-add my contacts. Anyone else having this problem? Someone knows how to solve?
If it's by the carrier, you should contact them and see what they receive in return for their side. Ive had Siri send messages for me and I have never seen this one IOS.
-
How to set the size of text with the report generator
Hello.
I'm trying to set the size of the text with the report generator, but I find that I can't do this. Here is an example of the code that I use. Can someone tell me what I'm doing wrong please?
Thank you, Alec
I was generation from a word template.
I hacked my version of the Toolbox to give me maunal indicator control "model? He had obtained his permenatly self stuck on "T". I exposed this flag outside the API, so I can control under certain weather conditions I may or may not use the model police.
Does anyone know how to use this toolkit, or I did the right thing?
Cheers, Alec
-
Hi, I'm developing a simple mobile app in DW CC 2015 using JQuery Mobile. LIKE I need the list view with description of the product, functionality and image, I would like to connect with database instead of "writing" all the tables in the bearings inside the Jquery page. In the future I would also be able to add, to remove the DB records. Any help, tutorial... Thanks TG
I would like to connect with the database instead of "writing" all the tables in the bearings inside the Jquery page
This is usually done with a CMS (content management system). There are commercial products CMS like WordPress, Joomla and perch. You create one or several layouts and then create pages of these page layouts using the CMS. In this way, it is possible to have hundreds of pages, each with unique content, but a page layout that can be managed in a place of sharing.
CMSs on shelf don't require programming skills. Otherwise, some of us write our own CMS with custom functions, but this requires back-end, as with PHP programming.
-
In our Web page we have pages with lists of the pdf reports that we want to make available. I tried a search engine, but it only directs you to the page with the list. How can we lead the researcher to a specific report?
Exactly, it would depend on how you have set the referencing of your site, please check the suggestions made in this tutorial:
https://helpx.Adobe.com/Muse/how-to/sitemap-XML-file-explained.html
In addition, you can check these:
http://musewidgets.com/collections/all/SEO
Thank you
Sanjit
-
find and delete blocks of text with the same geometricBounds
Hi writer... .new question from here:
mySelection var = app.activeDocument.selection [0] .geometricBounds;
alert (mySelection);
throughout the document, I need search and delete blocks of text with the same geometricBounds.
If possible, the same dimensions, but not the same positions.
Thanks for the help!
OK Bala... .in to decimal differences, some executives have not been removed.
I solved with "Math.round' instead of 'number '.
===================
mySelection var = app.activeDocument.selection [0] .geometricBounds;
var myWidth = Math.round(mySelection[3]-mySelection[1]);
var myHeight = Math.round(mySelection[2]-mySelection[0]); Alert (myHeight);
var allFrames = app.activeDocument.allPageItems;
While (t = allFrames.pop ()) {}
{if (t.IsValid)}
var myTextframe = t.geometricBounds;
var myTWidth = Math.round(myTextframe[3]-myTextframe[1]);
var myTHeight = Math.round(myTextframe[2]-myTextframe[0]);
If ((myWidth == myTWidth) & (myHeight == myTHeight)) {}
t.Remove ();
}
}
}
===================
Now, your script works great!
Thank you very much!
-
[JS] [CS4] - populating a drop down with the list of printers?
Hello
I am filling a drop down field with the list of available printers. Here's what I have:
var app.printerList = printerList;
var w = new Window ("dialog"); w.orientation = 'row'; var dropDown = w.add("statictext", undefined, "Please select the printer"); var dropDown = w.add ("dropdownlist", undefined, printerList); dropDown.selection = 0; var buttonGroup = w.add ("group"); buttonGroup.add ("button", undefined, "OK"); w.center(); w.show();
This will fill a drop down with "Printer, printer, printer, printer" for each printer instead of the printer name (which is what I want).
When I try:
var printerList = app.printerList.name;
I get a drop of water to the bottom of the empty entries.
Any ideas on what I am doing wrong? Exactly how does the printerList?
Thank you
Lindsay
It also takes to still in my system, so I would add the following line
var pL = app.printerList;
and pL to avoid multiple calls to the system. for example
var arrayPrinterNames = []; for (var i = 0; i < iCount; ++i) { arrayPrinterNames.push(pL[i].name);
-
How to bind an index of full text with the catalog in PDF format?
Hello and thanks for your help.
I already create PDF files on a folder (with hyperlinks between us) and I use the command 'Tools\Document processing\Full text with the catalog Index' to create an index. now, everything works fine.
Now, I want to tie this index to my first PDF file to automatically use this index on an advanced search in this file.
I hope someone can answer me!
Thank you.
Now, I want to tie this index to my first PDF file to automatically use this index on an advanced search in this file.
In the document properties:
-
Hi all
I am facing a problem with the list item in my form. In my form, I have a list item (tmd_stat) with 3 list of values as the item complete, incomplete and null.this lies in the control block.
I have a block (Detail) which is the database block.status_disp [point List] is one of the .an article on the value of list tmd_stat is filling with different values.
an alert message (you want to change the status? Yes/No) will appear when we change the list item. If I click YES then the list works and retail block point status_disp is filled with a different list of values. If I click on 'No' the list value will be set to changed value.i.e suppose that I'm changing the Complete incomplete list item, alert message will be displayed. If I click on 'No' the cursor is placed on incomplete but incomplete. How can I place the cursor on the full value.
Can you please give me the solution.
Thank youHello
Save the old value in a variable and then if the user clicks on No. then reassign this value to the list item.
Kind regards
Manu.
-
The list view that stretches with the property of being Non-vmware
Hello
I added a custom column on the home page and for this column, I have to pass the value of the property of a custom object (not vmware, Object)
Is this possible?
PropertyProviderAdapter and DataProviderAdapter are independent of any UI code. What are adapters side Java responds to requests for data from the client.
In your case you don't need any interface class mediator user, just a PropertyProviderAdapter that meets the demand for data sent by the list view. The query is generated by the platform, do not do anything :-)
-
From today, after the most recent update, Firefox 8 on Windows 7, when I opened GMail, I can see the list view, but when I try to open an e-mail to read or answer, I get an error saying GMail failed to load the rich text editor, and I can only see the snippet, without the content of the email.
It seems to be caused by Adblock Plus 1.3.10. Disable temporarily it allows me to read and compose email normally.
Maybe you are looking for
-
Qosmio X 770-00 X - 16 GB (2x8gb 1333 MHz Kit) SODIMM upgrade - it works!
This isn't a question, but the answer to a question that I couldn't find the answer to. I went to the computer just today and have to try before you buy a 16 GB Kit of SODIMM DDR3 1333 MHz memory today. It works beautifully. After exhausting the inte
-
I'm a gamer, I play world of Warcraft. A week ago, the shortcut of this game that was created through disk began to have a popup alert indicating * Windows cannot access the specified device, path or file. You can not have the appropriate permissions
-
When computer for a while and plug in flash drive usb does not recognize the drive, the computer slows down, does not turn off. Even with all the flash drives I have, ok when computer on just. I tried all the solutions online, nothing helps.
-
HP Pavilion DV9720 on XP - SP3 - material sound does not exist
Well I am fairly certain that this topic has been beaten to death everywhere on the internet and well, I'm sorry to have to do this post but I have to do before giving up finally. Like many before me, I thought downgrading to XP would be a good choic
-
How internal big hard drive added to XPS 8700?
Desktop XPS 8700Latest version of the BiosWin 7 64 bit (1) I want to add a second drive, a disk of 5 TB storage in a XPS 8700. How big of a hard drive inside can accommodate of the XPS 8700? (2) the MBR, this storage 5 TB disk boot disk will be TPG.