Hide Objects from Searching...
The whole JSP-Files for the WebUI are located in the IFS-Database. When a user searches for some Files, he is able to get to the JSP Files and view their content.
I am not able to hide the Files, because they are needed for the startup of the WebUI for each user. So I can4t make them private.
How is it possible to exclude them from search? (Content and Selector - Search)
I do not think it is possible to hide them
in WebUI. If you are using custom search
tree using the Search API, then you can
hide those by tuning WHERE condition
to exclude those files.
Similar Messages
-
Hide specific content from search engine SEO, javascript
Hello,
I was wondering how good this would work to hide specific
content for search
engines.
<script>
var text =
'<table><tr><td>Hello</td></tr></table>'
document.write(text)
</script>
I have a site that has a database, when a user arrives at the
page the
database is checked against the ip and a flag is shown for
that specific
country. I would like to hide that from search engines as the
search engine
seems to make it local to itself.
do you think the above should work ok. I have been told else
where "just
make it display only by Javascript... search engines do not
run javascript
and should thereore NOT see the text"
would be interesting to know others commons on this.
regards
k.oO(Malcolm _)
>On Tue, 08 Jul 2008 18:28:41 +0200, Michael Fesser
<[email protected]>
>wrote:
>
>>.oO(twocans)
>>
>>>
http://wwp.greenwichmeantime.com/time-zone/europe/uk/flag.htm
>>>
>>>union jack
>>
>>But the Union Jack is not the English flag, which is
what I asked for.
>>
>>Working with flags in the WWW can become very
difficult. Making an
>>inappropriate choice may even offend some people.
>>
>>Micha
>
>well the English flag is the St George's Cross - Red
Cross on white
>background. it is shown just below the Union Flag.
Correct, but most people don't know that and just take the
Union Jack
for everything that's somewhat related to "English", hence my
question.
It's most commonly seen on pages that use flags to point to
different
language versions of that page.
This is not the case here, though, but I just wanted to point
out that
flags on a website can be troublesome. And I still don't
think that
determining the user's country just by looking at its IP can
be done
reliably, so some users will definitely get a wrong flag.
Whether this
might be a problem or not depends on the OP and his target
audience.
Micha -
Hide a library object from all but selected users
Perhaps I just missed this in the documentation, but is there a way to hide
a library object from all but selected users who will have access to the
docs in that library. I know I can uncheck access rights and assign them
only for selected users who can access the documents, but I would like to
hide the ibrary object as well, best that only those who have access even
know the library exisits in this case. Thanks.PatM wrote:
> Thanks to all for your comments and confirmation--I think this is worthy of
> an enhancement request, and I will put one in. Anyone else who thinks it is
> a good idea, your support is appreciated. In the case of a library for
> something like the human resource or finance department, I think it is
> pretty important, as one cannot rely on an individual user to set the rights
> correctly for just those documents in the real world of the work-a-day rush.
How do you give this support? This is a real issue with us as we
generate information that affects the price and "tradeability" of public
companies.
If it's only moral support -- you got it.
If you have to "vote" on these issues -- how?
> "Dave Parkes" <[email protected]> wrote in message
> news:[email protected]..
>> If there is, I don't know of it. Removing all the rights is as far as you
>> can go I think.
>>
>> I'd probably still just use document rights within a single library. If
>> these people who can access this library don't have their default set to
>> it, then things will end up in the wrong place anyway. Not a fan of
>> multiple active libraries, docs are inevitably in the wrong one <g>
>>
>> Cheers Dave
>>
>>
>> --
>> Dave Parkes [NSCS]
>> Occasionally resident at http://support-forums.novell.com/
>
>
Will R
PMC Consulting -
Disable, hide or disappear 'Search' from Start on account
Here is my problem, I have a computer with two accounts, Teacher (administrator) and Kids (standard /child), both are local accounts and would like to Disable, hide or disappear ' Search' from the Start Screen on the Kids account only! Any ideas? I know
this is possible using Group Policy Editor, but this would affect both accounts, any help will be appreciated.
Thank you
Rafael
Forgot to mention that I'm also aware that it can be turn off on in Control Panel/Turn Windows Features On or OffHi,
Even we hide the search bar in the start screen, kid can still search in other locations like Windows explorer or Internet explorer, so what is your final purpose? Maybe we can find a alterative solution. BTW, how about Kiosk metioned by Robert?
Yolanda Zhu
TechNet Community Support -
Hide Muse wire frame from search engines while in dev
Hi,
I am using muse to develop a wire frame for a client.
Could you advise on how I hide the site from search engines during this process.
Many Thanks
CasHi Cas,
If you have published the site to Business Catalyst and the site is still in trial mode, you have nothing to worry about. A robots.txt file is automatically added to the trial sites in BC. So search engines can't index the BC trial sites.
Regards,
Aish -
Importing objects from CR10 to BOEXI R2
Post Author: msegura
CA Forum: Migration to XI R2
Hi
I migrated one system from CR10 to BOEXI R2, and all finishes successfully. But at the end, I need to update the objects from the last version to the newer, especially CR10 reports.
The wizard finds objects to update, but the updating process ends with an error. In the log says that the process didnu2019t find the reports to be updated in the file system.
How can I configure the environment for avoid this error???
Thanks for your help>>Could you pls tell me the link in service.sap.com
https://websmp205.sap-ag.de/~form/handler?_APP=00200682500000001943&_EVENT=SEARCH&HIDE=&SEARCH_SPAT=X&SEARCH_BPAT=X&SEARCH_CD=X&SEARCH_P=X&SEARCH_PV=X&SEARCH_C=X&SEARCH_CV=X&SEARCH_TA=&SEARCH_V=&HIDE_EXPERT_SEARCH=X&SEARCH_MAX_RESULT=20
search SAP basis 6.40
Regards,
Jai Shankar -
Problem when importing objects from SLD to IR
Hi
When i try to import any object from SLD into
IR i cant view all the components under Data Types Message Types Interface Mapping and other related nodes.Just the object gets imporetd but none of ts nodes are visible.
Please let me know if any change in configuration or settings is to be done.
Thanks in Advance>>Could you pls tell me the link in service.sap.com
https://websmp205.sap-ag.de/~form/handler?_APP=00200682500000001943&_EVENT=SEARCH&HIDE=&SEARCH_SPAT=X&SEARCH_BPAT=X&SEARCH_CD=X&SEARCH_P=X&SEARCH_PV=X&SEARCH_C=X&SEARCH_CV=X&SEARCH_TA=&SEARCH_V=&HIDE_EXPERT_SEARCH=X&SEARCH_MAX_RESULT=20
search SAP basis 6.40
Regards,
Jai Shankar -
ArrayList problem ....i can remove my object from my arrayList
hi all, i am going to remove a object from my array by using arrayList.However, it can`t work properly and did nth for me..i don`t know why...could anyone give me some suggestion and show me what i did wrong on my code ....i stated more detail next to my code...plesae help...
public class MusicCd
private String musicCdsTitle;
private int yearOfRelease;
public MusicCd()
musicCdsTitle = "";
yearOfRelease = 1900;
public MusicCd(String newMusicCdsTitle)
musicCdsTitle = newMusicCdsTitle;
//yearOfRelease = newYearOfRelease;
public MusicCd(String newMusicCdsTitle, int newYearOfRelease)
musicCdsTitle = newMusicCdsTitle;
yearOfRelease = newYearOfRelease;
public String getTitle()
return musicCdsTitle;
public int getYearOfRelease()
return yearOfRelease;
public void setTitle(String newMusicCdsTitle)
musicCdsTitle = newMusicCdsTitle;
public void setYearOfRelease(int newYearOfRelease)
yearOfRelease = newYearOfRelease;
public boolean equalsName(MusicCd otherCd)
if(otherCd == null)
return false;
else
return (musicCdsTitle.equals(otherCd.musicCdsTitle));
public String toString()
return("Music Cd`s Title: " + musicCdsTitle + "\t"
+ "Year of release: " + yearOfRelease + "\t");
import java.util.ArrayList;
import java.io.*;
public class MusicCdStore
ArrayList<MusicCd> MusicCdList;
public void insertCd()
MusicCdList = new ArrayList<MusicCd>( );
readOperation theRo = new readOperation();
MusicCd theCd;
int muiseCdsYearOfRelease;
String muiseCdsTitle;
while(true)
String continueInsertCd = "Y";
do
muiseCdsTitle = theRo.readString("Please enter your CD`s title : ");
muiseCdsYearOfRelease = theRo.readInt("Please enter your CD`s year of release : ");
MusicCdList.add(new MusicCd(muiseCdsTitle, muiseCdsYearOfRelease));
MusicCdList.trimToSize();
continueInsertCd = theRo.readString("Do you have another Cd ? (Y/N) : ");
}while(continueInsertCd.equals("Y") || continueInsertCd.equals("y") );
if(continueInsertCd.equals("N") || continueInsertCd.equals("n"));
//MusicCdList.add(new MusicCd(muiseCdsTitle, muiseCdsYearOfRelease));
break;
//System.out.println("You `ve an invalid input " + continueInsertCd + " Please enter (Y/N) only!!");
public void displayAllCd()
System.out.println("\nOur CD collection is: \n" );
System.out.println(toString());
public String toString( )
String result= " ";
for( MusicCd tempCd : MusicCdList)
result += tempCd.toString() + "\n";
return result;
public void searchingMusicCd()
readOperation theRo = new readOperation();
String keyword = theRo.readString("Enter a CD `s Title you are going to search : ") ;
ArrayList<MusicCd> results = searchForTitle(keyword );
System.out.println("The search results for " + keyword + " are:" );
for(MusicCd tempCd : results)
System.out.println( tempCd.toString() );
//encapsulate the A
public void removeCd()
readOperation theRo = new readOperation();
String keyword = theRo.readString("Please enter CD `s title you are going to remove : ") ;
ArrayList<MusicCd> removeMusicCdResult = new ArrayList<MusicCd>();
System.out.println("The CD that you just removed is " + keyword );
for(MusicCd tempCd : removeMusicCdResult)
System.out.println( tempCd.toString() );
//problem occurs here : i am so confused of how to remove the exactly stuff from my arrayList
//pls help
private ArrayList<MusicCd> removeCdForTitle(String removeCdsTitle)
MusicCd tempMusicCd = new MusicCd();
tempMusicCd.setTitle(removeCdsTitle);
// tempMusicCd.setTitle(removeCdsTitle);
//tempMusicCd.getTitle() = removeCdsTitle;
ArrayList<MusicCd> removeMusicCdResult = new ArrayList<MusicCd>();
for(MusicCd currentMusicCd : MusicCdList)
if((currentMusicCd.getTitle()).equals(tempMusicCd.getTitle()))
// removeMusicCdResult.remove(currentMusicCd);
MusicCdList.remove(currentMusicCd);
removeMusicCdResult.trimToSize();
return removeMusicCdResult;
private ArrayList<MusicCd> searchForTitle(String searchString)
ArrayList<MusicCd> searchResult = new ArrayList<MusicCd>();
for(MusicCd currentMusicCd : MusicCdList)
if((currentMusicCd.getTitle()).indexOf(searchString) != -1)
searchResult.add(currentMusicCd);
searchResult.trimToSize();
return searchResult;
import java.util.*;
public class MusicCdStoreEngine{
public static void main(String[] args)
MusicCdStore mcs = new MusicCdStore( );
mcs.insertCd();
//display the Cd that you just insert
mcs.displayAllCd();
mcs.removeCd();
mcs.displayAllCd();
mcs.searchingMusicCd();
//Acutally result
//Please enter your CD`s title : ivan
//Please enter your CD`s year of release : 1992
//Do you have another Cd ? (Y/N) : y
//Please enter your CD`s title : hero
//Please enter your CD`s year of release : 1992
//Do you have another Cd ? (Y/N) : n
//Our CD collection is:
// Music Cd`s Title: ivan Year of release: 1992
//Music Cd`s Title: hero Year of release: 1992
//Please enter CD `s title you are going to remove : hero
//The CD that you just removed is hero
//Our CD collection is:
// Music Cd`s Title: ivan Year of release: 1992
//Music Cd`s Title: hero Year of release: 1992
//Enter a CD `s Title you are going to search : hero
//The search results for hero are:
//Music Cd`s Title: hero Year of release: 1992
//>Exit code: 0
//Expected result
//Please enter your CD`s title : ivan
//Please enter your CD`s year of release : 1992
//Do you have another Cd ? (Y/N) : y
//Please enter your CD`s title : hero
//Please enter your CD`s year of release : 1992
//Do you have another Cd ? (Y/N) : n
//Our CD collection is:
// Music Cd`s Title: ivan Year of release: 1992
//Music Cd`s Title: hero Year of release: 1992
//Please enter CD `s title you are going to remove : hero
//The CD that you just removed is hero
//Our CD collection is:
// Music Cd`s Title: ivan Year of release: 1992
//Music Cd`s Title: hero Year of release: 1992<<-- it is not supposed to display cos i have deleted it from from array
//Enter a CD `s Title you are going to search : hero
//The search results for hero are:
//Music Cd`s Title: hero Year of release: 1992<<-- i should have get this reuslt...cos it is already delete from my array
//>Exit code: 0
import java.util.*;
public class readOperation{
public String readString(String userInstruction)
String aString = null;
try
Scanner scan = new Scanner(System.in);
System.out.print(userInstruction);
aString = scan.nextLine();
catch (NoSuchElementException e)
//if no line was found
System.out.println("\nNoSuchElementException error occurred (no line was found) " + e);
catch (IllegalStateException e)
// if this scanner is closed
System.out.println("\nIllegalStateException error occurred (scanner is closed)" + e);
return aString;
public char readTheFirstChar(String userInstruction)
char aChar = ' ';
String strSelection = null;
try
//char charSelection;
Scanner scan = new Scanner(System.in);
System.out.print(userInstruction);
strSelection = scan.next();
aChar = strSelection.charAt(0);
catch (NoSuchElementException e)
//if no line was found
System.out.println("\nNoSuchElementException error occurred (no line was found) " + e);
catch (IllegalStateException e)
// if this scanner is closed
System.out.println("\nIllegalStateException error occurred (scanner is closed)" + e);
return aChar;
public int readInt(String userInstruction) {
int aInt = 0;
try {
Scanner scan = new Scanner(System.in);
System.out.print(userInstruction);
aInt = scan.nextInt();
} catch (InputMismatchException e) {
System.out.println("\nInputMismatchException error occurred (the next token does not match the Integer regular expression, or is out of range) " + e);
} catch (NoSuchElementException e) {
System.out.println("\nNoSuchElementException error occurred (input is exhausted)" + e);
} catch (IllegalStateException e) {
System.out.println("\nIllegalStateException error occurred (scanner is closed)" + e);
return aInt;
}//problem occurs hereI'm not sure that the problem does occur within the
removeCdForTitle() method.
Your main() method calls removeCd() which obtains the title of
the CD to be removed (keyword). But remoceCd() never
calls removeCdForTitle(), so nothing is ever removed. -
Problem with return a ColdFusion query object from a Java class
Hi!
I need to return a ColdFusion query object from a Java class
using a JDBC result set ( java.sql.ResultSet);
I have tried to pass my JDBC result set in to the constructor
of the coldfusion.sql.QueryTable class with this code:
ColdFusion code
<cfset pra = createObject("java","QueryUtil").init()>
<cfset newQuery = CreateObject("java",
"coldfusion.sql.QueryTable")>
<cfset newQuery.init( pra.getColdFusionQuery () ) >
My java class execute a query to db and return QueryTable
Java code (QueryUtil.java)
import coldfusion.sql.QueryTable; // (CFusion.jar for class
QueryTable)
import com.allaire.cfx //(cfx.jar for class Query used from
QueryTable)
public class QueryUtil
public static coldfusion.sql.QueryTable
getColdFusionQuery(java.sql.ResultSet rs)
return new coldfusion.sql.QueryTable(rs);
but when i run cfm page and coldfusion server tries to
execute : "<cfset pra =
createObject("java","QueryUtil").init()>" this error appears:
Object Instantiation Exception.
An exception occurred when instantiating a java object. The
cause of this exception was that: coldfusion/sql/QueryTable.
If i try to execute QueryUtil.java with Eclipse all it works.
Also I have tried to return java.sql.ResultSet directly to
coldfusion.sql.QueryTable.init () with failure.
Do you know some other solution?ok
i print all my code
pratica.java execute a query to db and return a querytable
java class
import java.util.*;
import java.sql.*;
import coldfusion.sql.*;
public class Pratica {
private HashMap my;
private String URI,LOGIN,PWD,DRIVER;
private Connection conn=null;
//funzione init
//riceve due strutture converite in hashmap
// globals
// dbprop
public Pratica(HashMap globals,HashMap dbprop) {
my = new HashMap();
my.put("GLOBALS",globals);
my.put("DBPROP",dbprop);
URI = "jdbc:sqlserver://it-bra-s0016;databaseName=nmobl";
LOGIN = "usr_dev";
PWD = "developer";
DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
try{
// Carico il driver JDBC per la connessione con il database
MySQL
Class.forName(DRIVER);
/* Connessione alla base di dati */
conn=DriverManager.getConnection(URI,LOGIN,PWD);
if(conn!=null) System.out.println("Connection Successful!");
} catch (ClassNotFoundException e) {
// Could not find the database driver
System.out.print("\ndriver non trovato "+e.getMessage());
System.out.flush();
catch (SQLException e) {
// Could not connect to the database
System.out.print("\nConnessione fallita "+e.getMessage());
System.out.flush();
//funzione search
//riceve un hash map con i filtri di ricerca
public QueryTable search(/*HashMap arg*/) {
ResultSet rs=null;
Statement stmt=null;
QueryTable ret=null;
String query="SELECT * FROM TAN100pratiche";
try{
stmt = conn.createStatement();// Creo lo Statement per
l'esecuzione della query
rs=stmt.executeQuery(query);
// while (rs.next()) {
// System.out.println(rs.getString("descrizione"));
catch (Exception e) {
e.printStackTrace();
try {
ret = Pratica.RsToQueryTable(rs);
} catch (SQLException e) {
e.printStackTrace();
this.close();
return(ret);
// ret=this.RsToQuery(rs);
// this.close(); //chiude le connessioni,recordset e
statament
//retstruct CF vede HashMap come struct
//METODO DI TEST
public HashMap retstruct(){
return(my);
//conversione resultset to querytable
private static QueryTable RsToQueryTable(ResultSet rs)
throws SQLException{
return new QueryTable(rs);
//chiura resultset statament e connessione
private void close(){
try{
conn.close();
conn=null;
catch (Exception e) {
e.printStackTrace();
coldfusion code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<title>Test JDBC CFML Using CFScript</title>
</head>
<body>
<cftry>
<cfset glb_map =
createObject("java","java.util.HashMap")>
<cfset dbprop_map =
createObject("java","java.util.HashMap")>
<cfset glb_map.init(glb)> <!---are passed from
another page--->
<cfset dbprop_map.init(glb["DBPROP"])>
<cfset pra =
createObject("java","Pratica").init(glb_map,dbprop_map)>
<cfset ourQuery
=createObject("java","coldfusion.sql.QueryTable").init(pra.search())>
<cfcatch>
<h2>Error - info below</h2>
<cfdump var="#cfcatch#"><cfabort>
</cfcatch>
</cftry>
<h2>Success - statement dumped below</h2>
<cfdump var="#ourQuery#">
</body>
</html>
error at line <cfset pra =
createObject("java","Pratica").init(glb_map,dbprop_map)>
An exception occurred when instantiating a java object. The
cause of this exception was that: coldfusion/sql/QueryTable.
----------------------------------------------------------------------- -
How do I stop Windows 7 from searching hidden files and folders
In XP it was simple with the intuitive Advanced Search Options.
Even if you enable "Don't show Hidden Files and Folders" in Windows 7, they still show up in the search menu. A similar post included a suggestion by a support dude to post a question here. I've searched for every possible solution and yet something so simple appears to be non existent. Has Microsoft just lost its mind with omitting this feature? Is this something that will never be solved? Indexed or not, hidden files and folders still appear in Search.
Thankswhat have you setup in Explorer->Organize->Folder & Search Options?
Don't show hidden and Hide: Empty, Protected, etc. all ticked
if you have at some stage indexed all those system folders, and subsquently removed those from the index scope, then you may need to rebuild the index so those results are not presented by searches?
i've assumed that you are getting things like \windows included, and this seems to be typical. perhaps because some common tools like notepad, wordpad etc reside in those folders.
have you checked out the Indexing Options?
from memory, "don't show hidden & system" really only obscures the stuff when you're browsing in explorer. the indexing engine doesn't respect that kind of setting. you'll need to get your indexing scope worked out to affect the search results presented.
I'm not concerned much with indexing, it's just amazing that there is no option to stop "Search" from searching hidden files and folders when "Don't show hidden" is checked - the way it was with XP, etc. As I understand it whether folder is indexed or not, will not stop "SEARCH" from searching them. It was quite simple in XP but in Windows 7 it seems it is impossible. -
I need to get the Excel.application object from a window handle using AccessibleObjectFromWindow. I can't seem to make the code work. First, I successfully search for the XLMAIN windows. Then, when I get a handle, I execute the AccessibleObjectFromWindow
function. It seems to return a value of -2147467262 in all cases. Therefore, I believe that it is returning an error value. I can't figure out how to determine the meaning of this value.
If it is an error value, I believe that one or more arguments are in error. My best guess at present is that the GUID argument is incorrect. I have tried two GUID values: {00020400-0000-0000-C000-000000000046} and {90140000-0016-0409-0000-0000000FF1CE}.
I have seen both used in conjunction with OBJID_NATIVEOM. Neither one seems to work. I really would prefer not to use the second one as it has an Excel major and minor version number. I would hate to have to change this code, if a new minor version appeared.
The attached code has been commented to show which parts have been shown to work and which not. I'm at my wits end and really need help.
Thanks
'This module is located in Access 2010, but this is an Excel question.
Option Compare Database
Option Explicit
' Module-Level Declarations
'The GetDesktopWindow function and FindWindowEx function work just fine.
Public Declare Function GetDesktopWindow Lib "user32" () As Long
Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" _
(ByVal hWnd1 As Long, _
ByVal hWnd2 As Long, _
ByVal lpsz1 As String, _
ByVal lpsz2 As String) _
As Long
'I'm not getting the expected output from this function (see below)
Private Declare Function AccessibleObjectFromWindow& Lib "oleacc.dll" _
(ByVal hwnd&, _
ByVal dwId&, _
riid As GUID, _
xlwb As Object)
Type GUID
lData1 As Long
iData2 As Integer
iData3 As Integer
aBData4(0 To 7) As Byte
End Type
Function ExcelInstances() As Long
' Procedure-Level Declarations
' Value of OBJID_NATIVEOM verified by checking list of Windows API constants _
on this site: http://www.lw-tech.com/q1/base.htm
Const OBJID_NATIVEOM = &HFFFFFFF0
Dim hWndDesk As Long 'Desktop window
Dim hWndXL As Long 'Child window
Dim objExcelApp As Object 'Final result wanted: Excel application object
'Following variable (xlapp) to be set by AccessibleObjectFromWindow function
Dim xlapp As Object
Dim IDispatch As GUID 'GUID used in call to AccessibleObjectFrom Window function
'Set up GUID to be used for all instances of Excel that are found
Dim tmp1 As Variant 'Return value from AccessibleObjectFromWindow
' Executable Statements
SetIDispatch IDispatch
IDispatch = IDispatch
'Get a handle to the desktop
hWndDesk = GetDesktopWindow 'This seems to work
Do
'Get the next Excel window
'The following statement seems to work. We are finding and counting _
correctly all the instances of Excel. hWndXL is non-zero for each _
instance of Excel
hWndXL = FindWindowEx(GetDesktopWindow, hWndXL, "XLMAIN", vbNullString)
'If we got one, increment the count
If hWndXL > 0 Then
'This works. We correctly count all _
instances of Excel
ExcelInstances = ExcelInstances + 1
'Here is the problem. The following statement executes and returns a value of _
-2147467262. xlapp, which is passed by reference to AccessibleObjectFromWindow, _
is set to nothing. It should be set to the object for Excel.application. _
I believe that this value is not an object. I tried to reference tmp1. in the _
immediate window. There was no Intellisense.
'I think that the function in returning an error value, but I can't figure _
out what it is. I believe that AccessibleObjectFromWindow returns error _
values, but I don't know where to find their values so I can interpret the _
function's results.
'As best I can tell, the hWndXL parameter is correct. It is the handle for _
an instance of Excel. OBJID_NATIVEOM is set correctly (see constant declaration _
above). xlapp is passed by reference as a non-initialized object variable, which _
will be set by AccessiblObjectFromWindow. IDispatch may be the problem. It is set _
as shown below in the procedure SetIDispatch(ByRef ID As GUID). This procedure _
appears to work. I can see that IDispatch is set as I intended and correctly _
passed to AccessibleObjectFromWindow.
tmp1 = AccessibleObjectFromWindow(hWndXL, OBJID_NATIVEOM, IDispatch, xlapp)
'Need to write code to test tmp1 for error. If none, then set objExcelApp = _
object. Also, I exect xlapp to be set to Excel.application
End If
'Loop until we've found them all
Loop Until hWndXL = 0
End Function
Private Sub SetIDispatch(ByRef ID As GUID)
'Defines the IDispatch variable. The interface _
ID is {90140000-0016-0409-0000-0000000FF1CE}.
'NOT USING {00020400-0000-0000-C000-000000000046}, _
which could be the problem
'9 is release version - first version shipped (initial release)
'0 is release type - retail/oem
'14 is major version
'0000 is minor version
'0016 is product ID - MS Excel 2010
'0409 is language identifier - English
'0 is x86 or x64 - this is x86
'000 reserved
'0 is debug/ship
'000000FF1CE is office family ID
With ID
.lData1 = &H90140000
.iData2 = &H16
.iData3 = &H409
.aBData4(0) = &H0
.aBData4(1) = &H0
.aBData4(2) = &H0
.aBData4(3) = &H0
.aBData4(4) = &H0
.aBData4(5) = &HF
.aBData4(6) = &HF1
.aBData4(7) = &HCE
End With
End Sub
DaveInCalabasasI don't think you can return a reference to Excel's main window like that as you are attempting to do.
Ref:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd317978(v=vs.85).aspx
It's relatively straightforward to return any workbook's window in any given instance, and in turn it's parent Excel app. Try the following and adapt as required (and include error handling) -
Option Explicit
Private Declare Function FindWindowEx Lib "User32" Alias "FindWindowExA" _
(ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, _
ByVal lpsz2 As String) As Long
Private Declare Function IIDFromString Lib "ole32" _
(ByVal lpsz As Long, ByRef lpiid As GUID) As Long
Private Declare Function AccessibleObjectFromWindow Lib "oleacc" _
(ByVal hWnd As Long, ByVal dwId As Long, ByRef riid As GUID, _
ByRef ppvObject As Object) As Long
Private Type GUID
Data1 As Long
Data2 As Integer
Data3 As Integer
Data4(7) As Byte
End Type
Private Const S_OK As Long = &H0
Private Const IID_IDispatch As String = "{00020400-0000-0000-C000-000000000046}"
Private Const OBJID_NATIVEOM As Long = &HFFFFFFF0
Sub test()
Dim i As Long
Dim hWinXL As Long
Dim xlApp As Object ' Excel.Application
Dim wb As Object ' Excel.Workbook
hWinXL = FindWindowEx(0&, 0&, "XLMAIN", vbNullString)
While hWinXL > 0
i = i + 1
Debug.Print "Instance_" & i; hWinXL
If GetXLapp(hWinXL, xlApp) Then
For Each wb In xlApp.Workbooks
Debug.Print , wb.Name
Next
End If
hWinXL = FindWindowEx(0, hWinXL, "XLMAIN", vbNullString)
Wend
End Sub
'Function GetXLapp(hWinXL As Long, xlApp As Excel.Application) As Boolean
Function GetXLapp(hWinXL As Long, xlApp As Object) As Boolean
Dim hWinDesk As Long, hWin7 As Long
Dim obj As Object
Dim iid As GUID
Call IIDFromString(StrPtr(IID_IDispatch), iid)
hWinDesk = FindWindowEx(hWinXL, 0&, "XLDESK", vbNullString)
hWin7 = FindWindowEx(hWinDesk, 0&, "EXCEL7", vbNullString)
If AccessibleObjectFromWindow(hWin7, OBJID_NATIVEOM, iid, obj) = S_OK Then
Set xlApp = obj.Application
GetXLapp = True
End If
End Function
Note as written if an instance does not have any loaded workbooks a reference will not be returned (though a workbook can be added using DDE, but convoluted!)
FWIW there are two other very different approaches to grab all running Excel instances though something along the lines of the above is simplest.
Peter Thornton -
Does any one know how to Disable/Hide "BCC" from outlook/owa in office 365?
Hi,
Does any one know how to Disable/Hide "BCC" from outlook/owa in office 365?
Thank You.Hi Kavin,
You can try the below steps on the OWA server box,
search for this file name in explorer
File name: "messageoptionsdialog.aspx"
open this file in notepad
search for "chkbcc" you'll find something like this "input type="checkbox" id="chkBcc"
you need to update the LINE BEFORE IT to <td style="visibility:hidden">
Try this and let me now if this worked
Although I've not tried this for the OUTLOOK client, you can try this and check if you need
But this has worked for OWA for one of my client
I'm also not very sure if this can be achieved on all of your outlook users from a server admin point of view, coz this is a client feature and not a user specific active directory attribute.
Thanks & Regards
John Chris -
Transporting objects from SAP BW 3.5 to SAP BI
Hi Experts,
I have SAP BI 7.0 installed on my laptop (C & D Drives) and have SAP BW 3.5 and SAP R/3 4.7 installed on an external hard drive (G).
Now I have created a data source in SAP BW 3.5 which i want to migrate to SAP BI 7.0.
Could anybody please let me know the step by step approach for how the objects created in SAP BW will be visible in SAP BI 7.0.
Many thanks in anticipation.
-AmitHi,
Please note that you probably have two different instances installed on your system. (BI7 and BW 3.5). Am I right?
If so you cannot transport one object from one system to the other.
You need to work in the BI7 system only if you want to migrate the datasources. ie. In your BI7 instance you have a datasource which is a 3.5 datasource. When you migrate this datasource, you are converting it to a BI7 datasource in the same instance.
So the question of partitions does not arise.
If you need to do a transport from one instance to the other, I think a better solution would be to put up this question in the Basis forum. You'll probably need a transport connection between the instances, not sure about this though.
If its migration that you are looking for, then you can simply search this forum, there are a lot of treads on the same topic.
Regards. -
How to access servlet objects from OA page controller class
Hi everybody!
I need to put some value into servlet attribute in OA page controller class to read it from ordinary servlet later.
How can i do it? Is it possible to get HttpServletRequest and HttpServletResponse objects from page controller?
Thank you.I have a servlet which receives uploaded files with special attributes (something like tags for file) using POST request.
This attributes created when user open page in standard OAF page via page controller.
On client side I have an applet which uploads user selected file to my servlet and passes this file attributes.
Now this attributes passes as plain text. I want to encrypt this attributes to hide attribute details from user. To do this I need to share some information between OAF page and my servlet.
I know that OAF supports URL encryption, but to decrypt it I should use standard pageContext object.
But in ordinary servlet I can't use it. -
Hiding the business partner search parameter from search criteria
Hi,
I have business partner search parameter whose value is hardcoded in the lead search..
I would like to hide the business partner search parameter from displaying only..
I need to achieve it programatically and not in configuration and all.
Do I need to write the code in P method or which method?
Thanks
MadhukarHi,
The code is as below and I just need to have the functionality of BP search field intact but hide it from display in web UI..if any correction is required let me know..
***current date is populated into LV_DATE
DATA lv_date TYPE string.
lv_date = sy-datum.
***current user login name is populated into LV_SUNAME
DATA lv_suname TYPE string.
lv_suname = sy-uname.
***Fetching the BP ID of the current user who logged into L_PARTNER
DATA:l_partner TYPE bu_partner.
CALL FUNCTION 'CRM_ERMS_FIND_BP_FOR_USER'
EXPORTING
iv_user_id = sy-uname
IMPORTING
ev_bupa_no = l_partner.
***structure for BUT051
TYPES : BEGIN OF ty_data,
relnr TYPE bu_relnr,
partner1 TYPE bu_partner,
partner2 TYPE bu_partner,
date_to TYPE bu_datto,
END OF ty_data.
***work area for BUT051
DATA wa_but051 TYPE ty_data.
***Fetching Dealer BP ID which is 'PARTNER1' field in BUT051
SELECT relnr
partner1
partner2
date_to
FROM but051
INTO wa_but051
UP TO 1 ROWS
WHERE partner2 = l_partner.
ENDSELECT.
***Geting the dealer BP ID into LV_DEALER
DATA lv_dealer TYPE string.
lv_dealer = wa_but051-partner1.
DATA: lr_qs TYPE REF TO cl_crm_bol_dquery_service,
lr_search_node TYPE REF TO cl_bsp_wd_context_node_asp,
lr_col TYPE REF TO if_bol_bo_col ,
lr_iterator TYPE REF TO if_bol_bo_col_iterator ,
lr_param TYPE REF TO if_bol_bo_property_access,
ls_selection TYPE genilt_selection_parameter,
lv_low TYPE sy-datum,
lv_attr_name TYPE name_komp ,
lv_value_set TYPE abap_bool .
IF iv_first_time EQ abap_true.
* to initialize the search view.
CALL METHOD super->do_prepare_output
EXPORTING
iv_first_time = iv_first_time.
* fetch the search node and its content.
lr_qs = me->get_current_dquery( ).
lr_col = lr_qs->get_selection_params( ).
* check the currently visible search attributes.
lr_iterator = lr_col->get_iterator( ).
lr_param = lr_iterator->get_first( ).
WHILE lr_param IS BOUND.
* get the parameters
lr_param->get_properties( IMPORTING es_attributes = ls_selection ).
IF ls_selection-attr_name = 'VALID_FROM'.
* SET_PROPERTIES
ls_selection-low = lv_date.
CALL METHOD lr_param->set_properties
EXPORTING
is_attributes = ls_selection.
lv_value_set = abap_true .
EXIT.
ENDIF.
IF ls_selection-attr_name = 'BU_PARTNER'.
* SET_PROPERTIES
ls_selection-low = lv_suname.
CALL METHOD lr_param->set_properties
EXPORTING
is_attributes = ls_selection.
lv_value_set = abap_true .
EXIT.
ENDIF.
lr_param = lr_iterator->get_next( ).
ENDWHILE.
IF lv_value_set EQ abap_false .
* it was not part of the visible attributes, then add it at the end.
CALL METHOD lr_qs->add_selection_param
EXPORTING
iv_attr_name = 'VALID_FROM'
iv_sign = 'I'
iv_option = 'EQ'
iv_low = lv_date.
CALL METHOD lr_qs->add_selection_param
EXPORTING
iv_attr_name = 'BU_PARTNER'
iv_sign = 'I'
iv_option = 'EQ'
iv_low = lv_dealer.
ENDIF.
* for a proper display of the added / changed attribute.
lr_search_node = get_dquery_cnode( ).
lr_search_node->build_parameter_tab( ).
ELSE.
* non first time call - just delegate to superclass.
CALL METHOD super->do_prepare_output
EXPORTING
iv_first_time = iv_first_time.
ENDIF.
Maybe you are looking for
-
I use a 500G WD as my external.. I have documents and movies there that i do not want to delete. Simply i just want to delete my time machine files completely and for my mac to not recognised it as a time machine HD.. TY guys p.s. A video would be n
-
On August 22nd I called to cancel my service being that my contract was over. My logic was simple. I really didn't use the phone enough to justify a $87/month payment. The young lady on the phone was very nice and presented to me the $60 plan that i
-
Should I use the Audit_Warn Feature for what I need
Very new to Solaris. I'm currently using Solairs 10 (X86). Can the audit_warn feature notify me via mail if the below would happen? Note: I have no hard or soft limit. If someone (root maybe) stoped the auditd service or the audit dameon stoped worki
-
Link authorization object to transaction code
Hi to all how to link authorization object to transaction code? i think we can do by using SU24, i am not getting how to do ? can any one help me on this Immediately Regards raadha
-
Problems with Messages HELP!!!
I have just bought a macbook pro, and at first had problems using ichat (it kept saying i couldnt send a message as it wasnt a us mobile number) so i downloaded mountain lion to get message but now im having problems with that!!! Ive made an account