How tho check if selection is any kind of text:
ok.. another question:
how tho check if selection is any kind of text:
if (app.documents.length != 0 && app.selection.length != 0 && (app.selection[0].constructor.name=="Text"||app.selection[0].constructor.name=="Paragraph"))
but sometimes selection is "textStyleRange", sometimes is "character" etc. is there any shortcut to check everything at once?
I usually do something like this:
if ( app.documents.length && app.selection.length && app.selection [ 0 ].hasOwnProperty ( 'baseline' ) )
alert ( "It's a text!" );
Hope that helps.
Marijan (tomaxxi)
http://tomaxxi.com
Similar Messages
-
How to check the owner of any Object in the database.
How to check the owner of any Object in the database.
Thanks
HimanshuWhat about this ?
SELECT owner,Object_name,object_type FROM all_objects
OR
SELECT owner,Object_name,object_type FROM dba_objects -
How to check table have exists any views in oracle
hi,
how to check table have exists any views in oracleSELECT * FROM user_dependencies
WHERE type='VIEW'
AND referenced_type='TABLE'
AND referenced_name ='Your_Table_Name' You may use dba_dependencies to find views in different schema. -
How to check if there is any problem in the interaction center inbox
hi,
how to check if there is any problem in the interaction inbox for recieving the attachments/cic0
some users who are sending withattachments is not able to reach the sap indox./
but without the attachments the mails are coming
I want to know how we can able to find out were is the problem.
thanks in advance
Prajith Phi,
Any update for the above query.
Thanks & Regards
Prajth P -
How to check to see if any Checkboxes within a subform are checked
Hi everyone, I'm sure there is a way (possibly through JavaScript) to figure out if any checkboxes in a subform are checked but I can't seem to figure it out. I'll work on uploading my form so that it will be easier to see what I'm talking about but in the mean time here is a brief explanation of how the form is setup:
my form's hierarchy is as follows:
Form1
-(Master Pages)
-TaxRegBusInfo
-SubForm2
-Checkbox1 (it will show/hide the following subform based on if it's checked or not)
-Q2SubForm1
-CheckboxA
-CheckboxB
-CheckboxC
etc (totaling out to about 50 checkboxes)
Basically what I'm trying to figure out is how to write some code (I'm guessing a function?) that I can use so that when someone goes through the form and selects any of the checkboxes (A,B,C, etc.) in any order or combination, a text box say something like "items checked."
I've looked into the "resolveNodes" and "instanceManager" functions as well as the Adobe LiveCycle help but I've only just started to dabble in JavaScript so I can't quite seem to figure out how to use them properly. Any help or links to beginner friendly documentation would be much appreciated!It doesn't necessarily have to show which items are checked but it would be helpful.
last night I started with this and it seems to work but I'm sure there is a better/more efficient way of doing it
var BoxCount = TaxRegQ1.chkAL.rawValue + TaxRegQ1.chkAR.rawValue + TaxRegQ1.chkAZ.rawValue
if (BoxCount>0){
Checked.rawValue = "Yes";
else
Checked.rawValue = "No";
How do you upload to this forum? Sorry i'm new to posting to the Adobe forum and can't seem to find the option. -
How to check if a user fills a header text in billing invoice
Hi everybody and thanks in advance.
My consultant wants to oblige all users to fill a header text when they create the billing invoice (vf01).
I was looking for several user exits when I can manage this requisite.
My problem is that when the user creates the invoice and push save button, I try to look for in the table STXH if the user created the header text. But I have not found anything, because the invoice has not created yet.
Only when the billing invoice has saved, the header text is stored in the table STXH.
I has been trying to find a structure wich contains the header data like xvbrk contains the data about type of invoice, etc.
I have studied this user exits:
userexit_number_range (module pool saplv60A, program rv60afzz)
userexit_account_prep_komkcv (same module)
userexit_account_prep_kompcv (same module)
userexit_fill_vbrk_vbrp (same module)
v60A0001 (Customer functions in the billing document).
My question is: In which structure is the header text of billing invoice manage before push the save button?
If I knew where it is, I could manage the data and check if the user filled the header text.
Thank you very much, and sorry for my pour English.David,
Place this code into USEREXIT_NUMBER_RANGE:
DATA: CATALOG LIKE TCATALOG OCCURS 0 WITH HEADER LINE,
MEMORY_ID(30).
data: c_MEMORY_ID(30) VALUE 'SAPLSTXD'.
DATA l_head type THEAD.
DATA wa_head type THEAD.
data: l_lines type table of TLine.
data: l_line type TLine.
DATA l_CATALOG type TCATALOG.
IMPORT CATALOG FROM MEMORY ID 'SAPLSTXD'.
loop at catalog into l_catalog.
if l_catalog-IS_REFTEXT is initial
and l_catalog-keep is initial.
concatenate c_memory_id l_catalog-id into memory_id.
import thead to l_head
tline to l_lines
from memory id memory_id.
loop at l_lines into l_line.
message i000(zz) with l_line-TDLINE.
endloop.
endif.
endloop.
It will expose the text entered into the text ids in a message box (for now). You will want to replace the MESSAGE statement with your own logic.
You may also need to change the message numver/class from ZZ - as seen here "message i000(zz) with l_line-TDLINE." with an appropriate message on your system.
DON'T forget those points. -
How to check the selected items of a selectManyListbox in doDML of an EO ?
Hello,
I have a VO based on en EO. During the doDML(UPDATE) of that EO, I would like to check what items of a af:selectManyListbox have been selected.
How could I get the checked items in the selectManyListbox (which belongs to the ViewController) in the doDML method of an EO (which belongs to the Model)?
Many thanksHello John,
I know I cannot access the component directly. This is why I asked my question.
The real case is rather complex and long to be copied and pasted here.
Let me simplify it without being too generic.
The VO is based on a hierarchical SQL query. All its EO attributes are transient. This VO is shown as a Tree in the page.
Each node of the Tree has a checkBox. During commit (doDML() of the EO to be precise), for each checked node I need to access the selected items of a selectManyListbox in some proper way to perform further operations on the DB (no matter what now). The selectManyListbox is based on a second VO. As you may understand, the problem is that from the EO I don't have a direct access to the selectManyListbox. Also, as far as I know, the VO the selectManuListBox is based on does not have any informations about the selected elements, since the checkBox in the list cannot be associated to the VO. Basically I cannot know what elements have been choosen.
I hope the problem is clear. -
How to protect ipad corners from any kind of damage?
How to protect side or corners of ipad 2 ?
How to protect back of ipad?Install a cover from one of the many iPad accessory providers on the internet. Do a Google search.
Hope this helps -
How to check whether there are any statistics in a schema or not?
Hi,
I was given a task of refreshing sa schema in CRM2 instance from CRM1.
But I did it with statistics=none.
++++
exp sa/sa@CRM1 OWNER=SA file=CRM1_SA.dmp log=CRM1_SA.log statistics=none buffer=4096000
imp sa/sa@CRM2 FULL=Y file=CRM2 SA.dmp log=CRM2 SA_IMP.log statistics=none buffer=4096000
++++
Now I want to know
1.whether I should have done with statistics?
2.How to compare the statistics of 2 sa schemas in the CRM1 & CRM2 instances?
Cheers,
KunwarNow I want to know
1.whether I should have done with statistics?Statistics gathering can be done after the import is finished and is recommended.
2.How to compare the statistics of 2 sa schemas in the CRM1 & CRM2 instances?Not sure why you would want to do this. -
When i klick on a link for a video files (for example a .wmv File) it opens a new tab and starts playing it, instead of giving me a dialog what it should do with the File so that i can either download it or play it with an external player. I already set all the video files in the "options -> Applications" screen to "Always ask", but instead of asking me, it's simply playing them.
What can i do to prevent firefox from playing videos?Tahnks, but that doesn't help me at all. As i said, i already changed all to "Always Ask", when i Filter for media i get 5 results where each says "Always Ask", so thats not the cause...
I realized yesterday that this does not happen with all formats, it happens with wmv but not with avi... but still dont know y -.- -
How to check old and new value for a text item attached to a lov?
Hi,
I am new to Forms.
I need your help in following.
I have a form which has a text item which is attached to a LOV. I want to track what changes are being done using that form. So i want to know what was old value and what is new value.
I can get the new value as it is there in form field. how can i know what was the old value.
Thanks
Prashant PathakThis is wrong:
name_in(':' ||l_audit_block.field_name)
this is right and will get you the current value of the the item:
name_in('l_audit_block.field_name');
Assuming the name of you block is "l_audit_block" and the name of your item is "field_name".
Please note name_in() returns your current value for an item. In your case this may or may not be the "old" value. I define "old" value as the value it was when it was queried. If that is what you are looking for you need to use the get_item_property() call that Steve described above.
--pat -
How to Check Images File Exist? in different server
Hi,
I have 10 different coldfusion server.
for example 9 server is for the web application site - for
example
http://myserverone/studentweb
the other one is for images website, just for displaying
student picture - for example
http://myserverimage/studentpicture.
the purpose of this website is to display student picture
that i store as gif files.
from my studentweb website i will call the images from
studentpicture website as source for my image placeholder.
for example this is my code i'm calling form
http://myserverone/studentweb
website:
<img src="
http://myserverimage/studentpicture/#studentnumber#.gif"
alt="" name="studentpicture" width="160" height="200">
my problem is, if there is no specific student picture in my
studentpicture website, then the placeholder will display an X (
mean the images not found )
how do i prevent the X to display?
how do i using coldfusion or any kind of way to check if the
images exist on that website ( different server ), so if the images
is not found, i can display a default images? i can do this if i'm
calling the website in the same server, but not using a different
server.
this is like using other website images for your own personal
website and sometimes the owner delete the images from their
website, and i want to display my own images if that images been
removed from the source website.
anyone have done this before?
thanks for suggestion and guide...
haire1. Use CFHTTP with method="HEAD".
2. See, if the HTTP status code is 200.
The head-method is of course more efficient, as it doesn't
need to "get" the message body. However, a status code of 200 is
possible even when the requested image file is no longer on the
server. -
Open Slaes Order-How to check and close ?
Hi,
We have an open sales order which looks like the delivery is closed and 100% completed, but the sales order is still open!
Now i know this is an ongoing issue which has several possible reasons for and i have used a script to see what is returned but nothing.
Can you let me know how to check if there were any changes made in any particular Sales orders ?
eg comparing open items list of sales orders with something ?
Thank you in advance,Hi,
Yes we ran the query in note 948670 and it came back zero for all?! See below for details.
This is what has thrown us so what is the simplest way to check why a SO remains open i.e how to check if there were any changes made?
Rdr u2013 0 Rows
Dln - 0 Rows
Rdn - 0 Rows
Por - 0 Rows
Pdn - 0 Rows
Rpd - 0 Rows -
Check whether there is any Special Characters in a String ?
Hi All,
I am having a very large String. I like to know how to check whether there is any special characters present in a string
Thanks,
J.KathirI am having a very large String. I like to
I like to know how to check whether there is any
special characters present in a stringAll characters are special in a way. You shouldn't just single a few out because they don't look "normal" to you. Maybe they have golden hearts? -
HOw to check for the Child Elements USing only SAX Parsr?
HI Guyz,
How to check whether there are any Child Elements in an XML file using ONLY SAX parser ??? I have a requirement of checking first whether there is any Child Elements exists for a Element or not and based on that I have to take certain actions. Can anyone suggest me How to do that ???
Thanx
KKSince SAX is event controlled, you wont know if there's a child element unless you actually bump into it with the Parser. You'll simply get another startElement event after your current one.
/Tom
Maybe you are looking for
-
How can I copy an existing project?
I am using RoboHelp 9 on a virtual server. I copied the entire folder of original project. Named New Folder the name of 2nd project. Can;t find copied project when I view open projects in robohelp. I am very new to this but I desparately need to cop
-
Why can I not open a new window but I can open new tabs in V3.6.16?
I am running Firefox 3.6.16 on both my PC and my laptop. The program works fine on my PC, I can open both new windows and new tabs. However, on my laptop I can not open a new window. Tabs open just fine, but when I try to open a new window nothing ha
-
ITunes 8.1 vizualiser problem
After install iTunes v8.0, I discover unfortunately, that *the new visualizer don't work*. Then, I updated it to v8.1 and the same problem continue. Incidentally, I discovered that if a pen drive is plugged in a USB port, the new visualizer of iTunes
-
I can download Firefox 4 but i cannot install due to above message
-
Change pointers are not generated when creating a material master
Dear Experts, Change pointers are not generated when creating a material master. However, when a change is made to the already created material, the change pointers are created according the fields in BD52. Am I missing any settings? I need to c