Focal Point
[CASE-OPENED] FEX Search tool

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4767047966

March 21, 2014, 01:35 PM
Mikey
[CASE-OPENED] FEX Search tool
In SQL, I can Search all my procedures for a specific word or segment of code and see all procedures the code is in.

What is the WebFocus tool similar to SQL Search?

This message has been edited. Last edited by: <Kathryn Henning>,


8007
Windows 7, PDF, Excel
March 21, 2014, 02:01 PM
Prarie
Unless they have put one in Version 8, there has never been that tool. You have to do searches on the file system with something else, I use Ultraedit.
March 21, 2014, 03:33 PM
njsden
With the MR Repository content now kept in a database in WebFOCUS 8 instead of a file system as before trying to look words or code patterns is definitely more challenging now. Frowner

Having to somehow "export" the repository content out to a file system (if that's even an option in WF 8) so Operating Systems utilities can be used on it is more than an inconvenience. Hopefully IBI does (or will) provide robust searching facilities through the repository or this will be a step backwards in productivity.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
March 23, 2014, 09:16 AM
WF_IL
Hi

I would recommend you to open a case requesting this feature "Impact Analysis on BIP reports"
Here's a technique written by a developer at one of our customers - when the WF repository is in Oracle:

the following stored
procedure in Oracle which transforms the BLOB to CLOB and inserts it in a new
table. Then its easier to query the CLOB field

DECLARE
V_CLOB CLOB;
V_BLOB BLOB;
V_OBJ_HANDLE VARCHAR2(90);
V_ROWNUM INTEGER;
V_LEN INTEGER;

BEGIN
FOR I IN (SELECT BCONTENT, CREATEDBY, CREATEDON, OBJ_HANDLE, VERSION
FROM WF_CONTENT_REVS S
--WHERE ROWNUM < 11
) LOOP
SELECT I.BCONTENT, DBMS_LOB.GETLENGTH(I.BCONTENT)
INTO V_BLOB, V_LEN
FROM DUAL;
V_ROWNUM := 1;
--DBMS_OUTPUT.PUT_LINE(I.OBJ_HANDLE || ' - ' || V_LEN);
V_CLOB := '';
WHILE V_ROWNUM < V_LEN LOOP
V_CLOB := V_CLOB ||
UTL_RAW.CAST_TO_VARCHAR2(DBMS_LOB.SUBSTR(V_BLOB,
2000,
V_ROWNUM));
V_ROWNUM := V_ROWNUM + 2000;
END LOOP;
INSERT INTO WF_CONTENT_REVS_CLOB
(BCONTENT, CREATEDBY, CREATEDON, OBJ_HANDLE, VERSION)
VALUES
(V_CLOB, I.CREATEDBY, I.CREATEDON, I.OBJ_HANDLE, I.VERSION);
COMMIT;
END LOOP;
END;


Yours,
Eran
SRL Products

http://www.srl.co.il

March 24, 2014, 05:14 AM
Wep5622
I have been told that you get files on a file-system when you use projects in Developer Studio. Not sure how that is for MRE though.

There are a number of benefits to having actual files on an actual file-system (as opposed to data-blobs in a database). To name a few, you can version files (using source control) and you can search in files.

Now if IBI would expose the database data as a file-system to the OS, there wouldn't be a problem, but I guess that's a bit much to ask for...

A bit off-topic: Why are those procedures stored in a BINARY large object field to begin with? A CLOB makes a lot more sense there. Other databases generally have similar mechanisms, for example in PostgreSQL one would use type TEXT. I'm sure MS SQL and DB2 have equivalents - MySQL would probably still require BLOBs, that's how they do things.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
March 24, 2014, 08:39 AM
njsden
quote:
Why are those procedures stored in a BINARY large object field to begin with?


I don't access to a WebFOCUS 8 installation just yet and haven't been acquainted myself with the actual repository enough to see what it looks like. BLOB fields can store just about "anything" and given that MRE allows to manage binary objects (such as images) I think that using BLOB's probably made sense to IBI for this implementation.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
March 24, 2014, 06:38 PM
<Kathryn Henning>
Hi All,

There currently is a New Feature Request in programming for the ability to use Impact Analysis on the Content node. If you would like to be included in the New Feature Request, please open a case on InfoResponse Online so that we can link it to the project.

Thanks and regards,

Kathryn