Get the content type of frame
Hello
I used PlaceFileInFrame() to create the frame and import the file, now I want to get the content type (text or Image) of this created framework
No idea how to do?
Thank you.
Hi Shreelipi,
You can use IPageItemTypeUtils or IFrameType of the page element interface.
Markus
Tags: InDesign
Similar Questions
-
How to get the content of the list item selected ListView using CPP?
Hello
I do a simple application, get the content of the list item selected ListView using CPP, in the main.qml file, I created a listview using XMLDataModel and I got the selected listview using dataModel.data (row) .attributeNameInXmlfile in qml. content as in the same way the ListView using cpp.please help me I want to get the content of the listitem selected.
Here is my code
hand. QML
import bb.cascades 1.0 Page { content: Container { id: mainContainer objectName: "container" // property alias selectedText: selectedTextField.text //property alias deselectedText: deselectedTextField.text ListView { objectName: "listView" dataModel: XmlDataModel { source: "models/items.xml" id: model } listItemComponents: [ ListItemComponent { type: "item" StandardListItem { title: ListItemData.title } } ] } TextField { id: selectedTextField objectName: "selectedTextField" text: "" } TextField { id: deselectedTextField objectName: "deselectedTextField" text: "" } } }
App.cpp
#include "app.hpp" #include
#include #include #include #include #include using namespace std; using namespace bb::cascades; QObject *textFieldSelected ; QObject *textFieldNotSelected; QObject *list; App::App() { QmlDocument *qml = QmlDocument::create("main.qml"); AbstractPane *root = qml->createRootNode (); list = root->findChild ("listView"); textFieldNotSelected = root->findChild ("deselectedTextField"); textFieldSelected = root->findChild ("selectedTextField"); QObject::connect(list,SIGNAL(selectionChanged (QVariantList, bool)),this,SLOT(changeText(QVariantList, bool))); Application::setScene(root); } void App::changeText(QVariantList indexPath,bool selected) { } App.HPP
#ifndef APP_H #define APP_H #include
#include #include /*! * @brief Application GUI object */ class App : public QObject { Q_OBJECT public: App(); public slots: void changeText(QVariantList ,bool ); }; #endif // ifndef APP_H Try this.
void App::changeText(QVariantList indexPath,bool selected) { XmlDataModel *model = (XmlDataModel *)list->dataModel(); QVariantMap map = model->data(indexPath).toMap(); // map is your data in QVariant qDebug() << map["title"].toString(); }
-
API: get the contents of a lookup table?
Hello
I have a small application that automates the deployment of applications. He, among others, should be able to make calls in VSM.
I used a previous version of the API with infraEnterpriseAPI.asmx as an entry point, so I'm not totally familiar with that.
Now, to make a call, the user of my application needs to fill out some information:
-Call description
Status - IPK
-The group in support of the appeal must be sent to
And that's all. There is another piece of information that is too full, but I put all those automatically.
Now, I want to give my menus drop down users about the status of the IPK and the "Forward To" field, because I want to choose what type of call, it should be and who to send it to. They don't know the names or the refs of the IPK statutes or support groups, and they shouldn't have to.
Problem is that I have no idea how to do to get the content of the API lookup tables. Is it possible to do? Or should I (as I did for the previous version) that information straight out of the database?
Best regards
Kris
I think I'll just query the database directly... which seems quite a lot easier.
-
Fed up with Mail.
When I open mail it says it is downloading the messages, there may be 2 or 3 messages to load and this is true for several minutes. While showing that it's always getting new messages, Mail displays the message header but not the content, I have to close to stop this lengthy process erratic and reopen it to get the content of the messages. Often Mail load the same message 2 or 3 times, even if I leave the app end its process, Yes, because sometimes it ends.
Is there anyone who has the answer to this?
I am seriously thinking of abandonment of post and take something else to manage my emails.
Thank you for your community!
You have created all of the subfolders of the Inbox for the account?
-
can not get the content in this area (dublin, Ireland)
tried to download the trial of office clicked on office bureau chief, said he may not get the content in this region dublin Ireland I did something wrong
Hello
Many posters have managed to install the trial of Office for download and registration of the trial, and then install. ; instead of simply downloading.
This answer from another Thread can help you.
"I solved this problem in a surprising way - rather than the Download Manager LAUNCHES, I chose to SAVE it, and then he ran after it and it is more me gave this error."
See you soon.
-
I have a menu for MENUITEM_BROWSER entry. But when my input is triggered, the context is just the URL of the page chain. How can I get the content of this page? I'm on OS 4.5.
Also is it possible to have an entry in menu for when the user has selected text?
Thank you
~ S
This is not supported. Your application can use the URL to open a network connection and the download page.
-
How to get the content of a textarea with bbui and jquery
Hi, I have a problem. I build an app with bbUI and jQuery. Now, I need to get the content of a Textare when someone clicks on the record in the next page:
Text Entry ExamplesText Areamy javascript code looks like this:
function save() { alert($("#myinput").text()); }
what I have to change to get this working? I don't get the "123", but when I change it is always '123 '.
I believe you can use the .val property.
$("#id").val()
-
Get the content of the push message?
Try to get the content of the push message to display in the hub.
In the example, it is on push.fileExtension ();
I also had push.pushTime () to work, but when I try to push.content () it will fail to compile. Anyone know what I should be using here?
Just used
pushPayload.data)
directly.
-
How can I get the content of a node TreeField?
I need to keep the contents of a TreeField.
I believe that the only way to do that is to keep the content of the tree instead of the tree itself.
However, I can't drive how to get the content of a node.
I found the method to get the node ID, but nothing to get the string value that contains the node.
Any suggestions?
Thank you.
the objects contained in a treefield are known cookies.
You can use http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/ui/component/TreeField.html#ge...
to retrieve one for the node id. -
How to get the content of the outcome document of the server component
Hello
I want to handle it with the content of a step in the workflow document. I am able to check document check-in and any new content.
I'm not able to get the content of the document.
This is the skeleton of my server component:
See section - it works OK
service.executeService ("CHECKOUT_IMPLEMENT"); Case of document - OK
Section GET_FILE
service.executeServiceEx ("GET_FILE", true); Ecexuted OK, but where is the content of the file?
How can I get content? Any byte [], InputStream?
No data
OutputStream out = service.getOutput ();
No usable data
Stream2 DataStreamWrapper = service.getDownloadStream (false);
Code HTML, but not the content of the files
service.getHtmlPageAsBytes ();
Check section - it works OK
binder.putLocal ("isFinished", "0");
binder.putLocal ("doFileCopy", "1");
binder.putLocal ("primaryFile", "new.pdf");
binder.putLocal ("primaryFile:path", "/ tmp/result/new.pdf");
service.executeService ("WORKFLOW_CHECKIN_SUB"); record new content - OK
Thanks for any advice,
Johny
Try this method: http://www.redstonecontentsolutions.com/technical-blog/java-filter-retrieving-afile
Jonathan
-
Get the content of the field "Annotation" of a virtual computer
I can get the content of the field "Annotation" in the tab "Summary" of a virtual computer using the .notes property.
Think the contents of the field as:
First line
Second line
Fourth line
Fifth line
In this case, the .notes property returns a single string.
Looking inside the string I get I see the contents of the first line, a HEX '0A' character, the content of the second line, another character HEX '0A' and so on.
How can I get the content of each individual line?
Concerning
Marius
One solution is to cut the string as = $b $a.Split([char]0x0a)
Then read the lines simple as $b.item (n) beginning with index 0. $b.count returns the number of lines.
André
-
I am newbie in indesign scripting of animals. So I apologize because I couldn't post my essays.
Objective:
I have a .indd document which will be a figure of legend, label etc. I need to copy the content (a figure that is editable) else file indd of this document where the tag figure exists.For example:
Sample.inddSome text Fig.1.1 caption some text
I need to copy the contents of figure1.indd and paste in the document sample.indd where
Fig.1.1
string exist and so forth. Now I do it manually. But am supposed to automate this process.So, I need some hint how to do it using extendscript?
I found something like below, to do so, but I have no idea to develop it further and also do not know if this approach is correct my results. Please help me
myDocument=app.open(File("file.indd"),false); //opening a file to get the content without showing.
myDocument.pages.item(0).textFrames.item(0).contents="some text"; //here I could set the content but I don't knw how to get the content
// ?????? Then I have to paste the content into active document.
Try this test nicely to your and end, hope this will help you.
var myDoc = File("/D/Sample.indd");//Figure File var myFigDoc = File("/D/Figure.indd");//Destination File app.open(File(myFigDoc)); app.activeDocument.pageItems.everyItem().select(); myObj = app.selection; var myGroup = app.activeWindow.activePage.groups.add(myObj);//Grouping the objects myGroup.select(); app.copy(); app.open(File(myDoc)); app.findGrepPreferences = app.changeGrepPreferences = null; app.findGrepPreferences.findWhat = "Fig 1.1";//Figure caption text app.findGrepPreferences.appliedParagraphStyle = "FigureCaption";//Figure Caption Style myFinds = app.activeDocument.findGrep(); for(var i=0;i
-
Copy of the files and get the content of the file
So I try to get the content of the file and send through socket.write ().
I'm not entirely sure, If I'm doing this right, but I tried this:
var file = new File( "D:\\test.png" ); var file2 = new File( "D:\\test2.png" ); file.open("r"); file2.open("w"); file2.encoding = file.encoding; do { file2.write(file.readch()); } while ( !file.eof )
test.PNG exist and test2.png is created from scratch. And the files were not the same at the end. Which means that to get the content of the file with file.readch () or file.read () is not the right solution. Right?
So, how can I get the contents of the file in a format that can be sent and, no doubt, rebuilt on the other side?
You could try a binary encoding.
var file = new File( "D:\\test.png" ); var file2 = new File( "D:\\test2.png" ); file.open("r"); file.encoding = 'BINARY'; file2.open("w"); file2.encoding = 'BINARY'; do { file2.write(file.readch()); } while ( !file.eof ) ; file.close(); file2.close();
-
I'm new in indesign scripting, please tell me how to write a script to get the contents of an XML element and then sort all the content
Hello
Can the code below is useful for you, but I do not know how to sort.
Change the tag based on your employment application.
-
How to get the content during execution classpath
In production mode, I can't stop the weblogic server. In the command line window, shows that recent information. How to get the content of the classpath of weblogic domain?You can view the log file of the server under the location *
/servers/ /log / *. The log file contains the details about the CLASSPATH setting. A typical classpath is represented by the java.class.path attribute in the log file.
See you soon,.
Julien
http://WebLogic-wonders.com
Maybe you are looking for
-
Conversion of QuickTime is eating hard drive space?
So I thought I'd go through some old video files on an external drive, so when I found and tried to open them by default - open with Quicktime Player because they were .mov files. But when opening them that forced me to convert first, which took some
-
I looked for a similar question, I found the one that says I have to go to language & region and put everything out there, but I just want to change the option that changes my text in number not the General settings. I have added a picture of the pro
-
How to create a shortcut to a control
Hi all, I have a 2 page tab. In page 1, I have a control button that can be used to select. I want to place a shortcut for this control in page 2, could you tell how can I do? Thank you!
-
Error update system of Lenovo y550p
I installed the Lenovo system update program. But I get error on 27% when I run an update. It says "Error 76 from the center of update system". If anyone knows, please help.
-
How to get windows media Center in windows developer preview?
How to get windows media Center in windows developer preview?