Can the new DriveApp parameters be used to search a specific folder?
I am looking for a way to search a specific folder using DriveApp in
Google Apps Script. Here is what I have tried:
var folders = DriveApp.getFolderById('searchedFolderId');
var results = folders.searchFolders( "title contains '"+searchTerm+"'");
while (results.hasNext()) {
var folder = results.next();
// do something with search results here
}
Whenever I try this method, I only get the first folder found returned in
the folder iterator even though there are many other results.
I have also tried:
var results = DriveApp.searchFolders( "'searchedFolderId' in parents and
title contains '"+searchTerm+"'");
Now, whenever I try this method, I sometimes get more than one found
folder returned in the folder iterator. Is there a way to search a
specific folder using the DriveApp API...am I doing something wrong?
Thanks!
Tuesday, 17 September 2013
how to add grid on top of image which is used as panel in google app script?
how to add grid on top of image which is used as panel in google app script?
I am creating a panel having grid with controls like text box,label etc.
which should appear on image.
For that I have main panel
var mainPanel =
app.createVerticalPanel().setId("mainPanel").setVisible(false);
on this main panel I have added an image
var file =getFileFromFolder(existedFileName);
var fileID = file.getId();
var url = 'http://....;
mainPanel.add(mainImage);
Now on this image I need to add some controls so I have done something
like this...
var requiredGrid = app.createGrid(1,
2).setVisible(false).setId("requiredGrid");
mainPanel.add(requiredGrid);
but this adds requiredGrid below the image panel. Now I want to add this
on image i.e. image should come as a background for the requiredGrid.
I am creating a panel having grid with controls like text box,label etc.
which should appear on image.
For that I have main panel
var mainPanel =
app.createVerticalPanel().setId("mainPanel").setVisible(false);
on this main panel I have added an image
var file =getFileFromFolder(existedFileName);
var fileID = file.getId();
var url = 'http://....;
mainPanel.add(mainImage);
Now on this image I need to add some controls so I have done something
like this...
var requiredGrid = app.createGrid(1,
2).setVisible(false).setId("requiredGrid");
mainPanel.add(requiredGrid);
but this adds requiredGrid below the image panel. Now I want to add this
on image i.e. image should come as a background for the requiredGrid.
Sunday, 15 September 2013
Clickable area with background image and text
Clickable area with background image and text
I'm a front-end novice and am trying to figure out how to build the
following in my rails app:
https://dl.dropboxusercontent.com/u/10334022/browse.png
Each image is a company model with the attributes title, subtitle, image,
and number of deals. I want the entire area of each separate image to be
clickable and link to the "show" action. Also I need to darken the image a
to make the text more readable. My question is how to make each individual
picture-button.
Currently, I have bootstrap deployed on my app via the following gem in my
Gemfile:
gem 'bootstrap-sass', '2.3.2.0'
I am using carrierwave to store the images and they are accessible in the
views the following way:
<%= image_tag @company.image_url %>
This seems like it will be a long answer, but I really don't know where to
start. Thanks alot!
I'm a front-end novice and am trying to figure out how to build the
following in my rails app:
https://dl.dropboxusercontent.com/u/10334022/browse.png
Each image is a company model with the attributes title, subtitle, image,
and number of deals. I want the entire area of each separate image to be
clickable and link to the "show" action. Also I need to darken the image a
to make the text more readable. My question is how to make each individual
picture-button.
Currently, I have bootstrap deployed on my app via the following gem in my
Gemfile:
gem 'bootstrap-sass', '2.3.2.0'
I am using carrierwave to store the images and they are accessible in the
views the following way:
<%= image_tag @company.image_url %>
This seems like it will be a long answer, but I really don't know where to
start. Thanks alot!
how to zoom into a small section of the screen android
how to zoom into a small section of the screen android
Hey i am new to android and i wanted to know how to zoom into a small
section of the screen as if a camera is moving across the screen and
zooming into particular parts of the screen. i want to be able to create
the effect that the app is automatically zooming across the screen and
more into particular contents on the screen. i have tried searching alot
of places but i need to at least confirm its possible to be done. a bit
similar to imageview when a user double clicks an image but automatic
Hey i am new to android and i wanted to know how to zoom into a small
section of the screen as if a camera is moving across the screen and
zooming into particular parts of the screen. i want to be able to create
the effect that the app is automatically zooming across the screen and
more into particular contents on the screen. i have tried searching alot
of places but i need to at least confirm its possible to be done. a bit
similar to imageview when a user double clicks an image but automatic
confusion on subnet total addresses
confusion on subnet total addresses
I know how to get a first and last usable, broadcast and network addresses
but my question is on total addresses,
for example if I have a address 146.88.57.23/25
would it be ---> 255 - 128 = 127 + 1 = 128
would that equal to 128 of total addresses ?
I know how to get a first and last usable, broadcast and network addresses
but my question is on total addresses,
for example if I have a address 146.88.57.23/25
would it be ---> 255 - 128 = 127 + 1 = 128
would that equal to 128 of total addresses ?
how to create an options menu at the bottom of the device nexus
how to create an options menu at the bottom of the device nexus
I have a problem, I would make an application without actionbar but I
would still put a options menu. On devices that have a physical key, do
not show the problem, but on devices like the galaxy nexus, yes. How can I
make a options menu that appears in the bottom of the screen? To help you
understand I put a picture below.
Thanks in advance for the answers
rebus
image: http://img585.imageshack.us/img585/8291/2tzc.jpg
I have a problem, I would make an application without actionbar but I
would still put a options menu. On devices that have a physical key, do
not show the problem, but on devices like the galaxy nexus, yes. How can I
make a options menu that appears in the bottom of the screen? To help you
understand I put a picture below.
Thanks in advance for the answers
rebus
image: http://img585.imageshack.us/img585/8291/2tzc.jpg
How to remove word in C string
How to remove word in C string
I currently have a char array that is storing a filename.
eg. folder1/subfolder/subsubfolder/file1.txt
I want to be able to remove the first folder name in this char array. so
it becomes
subfolder/subsubfolder/file1.txt
I know that basename() will make the output file1.txt but I need the
folder structure, just not the first one.
What is the best way to do it? use / as a delineating character?
I currently have a char array that is storing a filename.
eg. folder1/subfolder/subsubfolder/file1.txt
I want to be able to remove the first folder name in this char array. so
it becomes
subfolder/subsubfolder/file1.txt
I know that basename() will make the output file1.txt but I need the
folder structure, just not the first one.
What is the best way to do it? use / as a delineating character?
Subscribe to:
Posts (Atom)