Tool to list blocks and block items
i'm wondering if there is a tool that can exhaustively list block and block item names for auditing purposes?
thanks again.
Hai,
Try this Code
Str_First_Block VARCHAR2(100);
Str_Current_Block VARCHAR2(100);
Str_First_Item VARCHAR2(100);
Str_Current_Item VARCHAR2(100);
Str_List VARCHAR2(32767); -- *the max of varchar is 32767*
BEGIN
Str_List := NULL;
Str_First_Block := NAME_IN('SYSTEM.CURRENT_BLOCK');
Str_Current_Block := Str_First_Block;
LOOP
Str_First_Item := GET_BLOCK_PROPERTY(Str_Current_Block, FIRST_ITEM);
Str_List := Str_List || CHR(10) || Str_Current_Block || '.' || Str_First_Item;
Str_Current_Item := Str_First_Item;
LOOP
Str_Current_Item := GET_ITEM_PROPERTY(Str_Current_Item, NEXTITEM);
EXIT WHEN Str_Current_Item IS NULL;
Str_List := Str_List || CHR(10) || Str_Current_Block || '.' || Str_Current_Item;
END LOOP;
Str_Current_Block := GET_BLOCK_PROPERTY(Str_Current_Block,NEXTBLOCK);
EXIT WHEN Str_Current_Block IS NULL;
END LOOP;
END;this will give you the full items list of the current form. keep and eye on that Str_List variable, as the size of that variable is too small.
Regards,
Manu.
If this answer is helpful or correct, please mark it. Thanks.
Similar Messages
-
WorkflowHistory List ID and Primary Item ID is null - VS /SharePoint App Workflow
This is very puzzling. I have WriteToHistory activity (OOTB) in my SharePoint State Workflow. When source list gets updated, workflow fires and first activity is called is WriteToHistory
activity.
In the workflowhistorylist list , I don't see List ID, Primary Item ID populated (I do see workflow history parent instance, association ID, user id,
date occurred,Description are populated). BTW, workflow template ID, event type, group type, outcome , duration and data are also empty - I don't want it for my solution so I don't care for now).
Has anyone seen this ? Any help or pointers?
Thank you so much.
DTHi,
If you use SharePoint designer workflow create a SharePoint 2013 workflow, the List ID and Primay Item ID in workflow history list also is null. I'm not find a official document to explain this things.
If you want to dubug in visual studio workflow, we can use the following debugging techniques:
1. Setting breakpoints
2. Sending debug messages to the console
3. Monitoring traffic between SharePoint and Workflow Manager with Fiddler
We can customize a workflow action to achieve your requirement.
How to: Build and deploy workflow custom actions
http://msdn.microsoft.com/en-us/library/office/jj163911(v=office.15).aspx
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support -
How to find the name of the block and yours items at runtime
Hi, everybody.
I wonder if there is any way to list the name of a block and their respective items that forms at run time. for example, using a loop in wnfi.
Since already thank you.
Sorry for my bad English.Hi,
Try this code. It will travel through all block's items.
DECLARE
Str_First_Block VARCHAR2(100) := NULL;
Str_First_Item VARCHAR2(100) := NULL;
Str_Current_Block VARCHAR2(100) := NULL;
Str_Current_Item VARCHAR2(100) := NULL;
BEGIN
Str_First_Block := :SYSTEM.CURRENT_BLOCK;
LOOP
IF Str_Current_Block IS NULL THEN
Str_Current_Block := Str_First_Block;
END IF;
Str_First_Item := GET_BLOCK_PROPERTY(Str_Current_Block, FIRST_ITEM);
LOOP
IF Str_Current_Item IS NULL THEN
Str_Current_Item := Str_First_Item;
END IF;
MESSAGE('Item - ' || Str_Current_Block || '.' || Str_Current_Item);
PAUSE;
Str_Current_Item := GET_ITEM_PROPERTY(Str_Current_Block || '.' || Str_Current_Item, NEXTITEM);
EXIT WHEN Str_Current_Item IS NULL;
END LOOP;
Str_Current_Block := GET_BLOCK_PROPERTY(Str_Current_Block, NEXTBLOCK);
EXIT WHEN Str_Current_Block IS NULL;
END LOOP;
END;Regards,
Manu.
If my response or the response of another was helpful, please mark it accordingly -
How to set runtime block and its items navigation
this is my procedure to set a navigation in a block. but with this i m unable to how to navigate to second block.
first block name is TRANS1
and second block name TRANS2
i need this navigation procedure because some items are getting invisible at the run time.i m using ORACLE 8i and FORM 6i.
PROCEDURE NAVIGATION_SEQUENCE IS
V_LOOP NUMBER;
V_PREITEM VARCHAR2(100);
V_MAXLOOP1 NUMBER;
V_MAXLOOP2 NUMBER;
BEGIN
NULL;
SET_ITEM_PROPERTY('TRANS1.T_DATE',NEXT_NAVIGATION_ITEM,'TRANS1.T_VRDATE');
IF :PARAMETER.F$BOOKTYPE = 'DB' THEN
SET_ITEM_PROPERTY('TRANS1.T_VRDATE',NEXT_NAVIGATION_ITEM,'TRANS1.T_VRNO');
SET_ITEM_PROPERTY('TRANS1.T_VRNO',NEXT_NAVIGATION_ITEM,'TRANS1.T_MAID');
ELSE
SET_ITEM_PROPERTY('TRANS1.T_VRDATE',NEXT_NAVIGATION_ITEM,'TRANS1.T_MAID');
END IF;
SET_ITEM_PROPERTY('TRANS1.T_MAID',NEXT_NAVIGATION_ITEM,'TRANS1.T_AGID');
SET_ITEM_PROPERTY('TRANS1.T_AGID',NEXT_NAVIGATION_ITEM,'TRANS1.T_DUEDAYS');
SET_ITEM_PROPERTY('TRANS1.T_DUEDAYS',NEXT_NAVIGATION_ITEM,'TRANS1.T_DUEDATE');
V_PREITEM := 'TRANS1.T_DUEDAYS';
IF GET_ITEM_PROPERTY('TRANS1.T_DF1',VISIBLE) = 'TRUE' THEN
SET_ITEM_PROPERTY('TRANS1.T_DF1',NAVIGABLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY(''||V_PREITEM||'',NEXT_NAVIGATION_ITEM,'TRANS1.T_DF1');
V_PREITEM := 'TRANS1.T_DF1';
END IF;
IF GET_ITEM_PROPERTY('TRANS1.T_DF2',VISIBLE) = 'TRUE' THEN
SET_ITEM_PROPERTY('TRANS1.T_DF2',NAVIGABLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY(''||V_PREITEM||'',NEXT_NAVIGATION_ITEM,'TRANS1.T_DF2');
V_PREITEM := 'TRANS1.T_DF2';
END IF;
IF GET_ITEM_PROPERTY('TRANS1.T_DF3',VISIBLE) = 'TRUE' THEN
SET_ITEM_PROPERTY('TRANS1.T_DF3',NAVIGABLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY(''||V_PREITEM||'',NEXT_NAVIGATION_ITEM,'TRANS1.T_DF3');
V_PREITEM := 'TRANS1.T_DF3';
END IF;
IF GET_ITEM_PROPERTY('TRANS1.T_DF4',VISIBLE) = 'TRUE' THEN
SET_ITEM_PROPERTY('TRANS1.T_DF4',NAVIGABLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY(''||V_PREITEM||'',NEXT_NAVIGATION_ITEM,'TRANS1.T_DF4');
V_PREITEM := 'TRANS1.T_DF4';
END IF;
IF GET_ITEM_PROPERTY('TRANS1.T_DF5',VISIBLE) = 'TRUE' THEN
SET_ITEM_PROPERTY('TRANS1.T_DF5',NAVIGABLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY(''||V_PREITEM||'',NEXT_NAVIGATION_ITEM,'TRANS1.T_DF5');
V_PREITEM := 'TRANS1.T_DF5';
END IF;
IF GET_ITEM_PROPERTY('TRANS1.T_DF6',VISIBLE) = 'TRUE' THEN
SET_ITEM_PROPERTY('TRANS1.T_DF6',NAVIGABLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY(''||V_PREITEM||'',NEXT_NAVIGATION_ITEM,'TRANS1.T_DF6');
V_PREITEM := 'TRANS1.T_DF6';
END IF;
end NAVIGATION_SEQUENCE;hi Volberg
thanks for your reply
dear friend in my form, some of the block item i have to disable(make invisible).
this is my requirement.
V_PREITEM is a variable which contain the name of last item, which i already set in navigation.
look at all 'IF' condition.
1st V_PREITEM := 'TRANS1.T_DF1';
2nd V_PREITEM := 'TRANS1.T_DF2';
in other words V_PREITEM variable having last item name.
IF GET_ITEM_PROPERTY('TRANS1.T_DF1',VISIBLE) = 'TRUE' THEN
SET_ITEM_PROPERTY('TRANS1.T_DF1',NAVIGABLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY(''||V_PREITEM||'',NEXT_NAVIGATION_ITEM,'TRANS1.T_DF1');
V_PREITEM := 'TRANS1.T_DF1';
END IF;
IF GET_ITEM_PROPERTY('TRANS1.T_DF2',VISIBLE) = 'TRUE' THEN
SET_ITEM_PROPERTY('TRANS1.T_DF2',NAVIGABLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY(''||V_PREITEM||'',NEXT_NAVIGATION_ITEM,'TRANS1.T_DF2');
V_PREITEM := 'TRANS1.T_DF2';END IF;
IF GET_ITEM_PROPERTY('TRANS1.T_DF3',VISIBLE) = 'TRUE' THEN
SET_ITEM_PROPERTY('TRANS1.T_DF3',NAVIGABLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY(''||V_PREITEM||'',NEXT_NAVIGATION_ITEM,'TRANS1.T_DF3');
V_PREITEM := 'TRANS1.T_DF3';
END IF; -
Difference GR blocked and blocked stock
Hi Experts
can u please tell me the difference between gr blocked stock and blocked stock.hi
>block stock
the block stock means the stock is in ur inventory and block for some special reason like reservation or any other reson
>gr block stock
gr block stock is the stock came and blocked for QM inspection before doing actual GR
means the stock will be in our premises but not of our liability
When we have some issues in the received stock and we do not want the quantity to be considered in the inventory the we can maintain the stock as GR Blocked stock.
It is only recorded in the purchase order history. This stock is NOT valuated.You can display goods receipt blocked stock from two viewpoints:
1.Goods receipt blocked stock for a material (at plant
level)
2.Goods receipt blocked stock for a purchase order item
hope it clears
regards
KI -
How to view or list cluster and block size of an ocfs2 filesystem
Hello all...
Have read ocfs2 user guide and do not see a way to list block or cluster size of an ocfs2 filesystem and additional properties similar to tune2fs -l.
Could someone post a way they have found?man tunefs.ocfs2
-Q, --query query-format
Query the file system for its attributes like block size, label, etc. Query formats are modified ver-
sions of the standard printf(3) formatting. The format is made up of static strings (which may include
standard C character escapes for newlines, tabs, and other special characters) and printf(3) type for-
matters. The list of type specifiers is as follows:
B Block size in bytes
T Cluster size in bytes
N Number of node slots
R Root directory block number
Y System directory block number
P First cluster group block number
V Volume label
U Volume uuid
M Compat flags
H Incompat flags
O RO Compat flags -
Lists, groups and selected item
I'm trying to learn how to work with lists and I'm just not getting it. I've been working on this for days now to no avail.
My first problem is eachItem is returning only last entry of groupsList instead of the selected specifiedGroup. Then what I would like to do which I'm not too keen on either is, take that selection and match it to one of the choice groups which would contain files or something that the user has preselected previously. Thanks so much! I'm learning a lot of Applescript lately but these lists get the best of me still as I don't fully understand how they work yet. Hoping this will clear my head on things.
property groupsList : {"List1", "List2", "List3", "List4", "List5"}
property specifiedGroup : {}
property choiceOne : {}
property choiceTwo : {}
property choiceThree : {}
property choiceFour : {}
property choiceFive : {}
choose from list groupsList
copy result to specifiedGroup
log specifiedGroup
set results to (every item of groupsList)
repeat with eachItem in results
if eachItem = specifiedGroup then
exit repeat
end if
end repeat
log eachItemAppleScript doesn't support variable variables, so you can't refer to variable names like that (at least not in regular AppleScript). Using a record isn't that much better, because you can't use variables to refer to property keys, either. There are a couple of cheats that use run script, but usually those are more of a pain that they are worth.
One way that is similar to what you are thinking about would be to create a list of lists, then use your choice to index into that list, for example:
property groupsList : {"List1", "List2", "List3", "List4", "List5"}
property choiceOne : {"choiceOne", "this is list 1"}
property choiceTwo : {"choiceTwo", "this is list 2"}
property choiceThree : {"choiceThree", "this is list 3"}
property choiceFour : {"choiceFour", "this is list 4"}
property choiceFive : {"choiceFive", "this is list 5"}
set listOfLists to {choiceOne, choiceTwo, choiceThree, choiceFour, choiceFive}
set theChoice to (choose from list groupsList) as text
if theChoice is "false" then error number -128 -- cancel
set specifiedGroup to missing value
repeat with i from 1 to (count groupsList)
if item i of groupsList = theChoice then
set specifiedGroup to item i of listOfLists
exit repeat
end if
end repeat
log specifiedGroup -
Code for AP Invoice Payment Block and Blocking Reason
What is the best way to code unblocking of Accounts Payable Invoice - using FM FI_DOCUMENT_CHANGE, BDC or direct table update.
Also, i need to remove blocking reasons for MM documents. I am not sure what table this is stored? Are there any FMs that can do this or does anybody have any example code?
Help much appreciated
AndrewHi,
Also, i need to remove blocking reasons for MM documents. I am not sure what table this is stored? Are there any FMs that can do this or does anybody have any example code?
The table is RBKP_BLOCKED.
To remove blocking reasons have a look at transaction MRBR.
Best regards. -
GR blocked Stock and Blocked Stock
Dear Experts,
In standard way in T.code MMBE which stock in Gr blocked and Blocked stock how can I see this stock document no. ( 103 and quality 321 etc. ) in which document no they come in same stock.
PoojaHi,
For your require ment go to the T.Code MB51 and give the Mov type , you get the documents relataed to as per Mov no.
In MMBe itself the option is there for GR blocked stock and blocked stock.
Regards,
Andra -
Hi all,
I'm back again in Forms forum : ) !!! and I'm working on a new and very interesting project
version used : Forms [32 bits] Version 10.1.2.3.0 (Production)
A little question for gurus :
On former projects I used to call loops on blocks and item like shown below to do various things such as displaying buttons or showing canvas or different VA depending on the user or scenarios .
PROCEDURE FRM_BLK_ITM_LOOP IS
v_curblk varchar2(90); -- bloc courant
v_curitm varchar2(90); -- item courant
BEGIN
v_curblk := get_form_property(:SYSTEM.CURRENT_FORM,first_block); -- on récupère le 1er block de la form
LOOP
v_curitm := v_curblk||'.'||get_block_property(v_curblk,first_item); -- on récupère le 1er item du block
WHILE v_curitm != v_curblk||'.'||get_block_property(v_curblk,last_item)
LOOP -- tant que l'item n'est pas le dernier du block on loop
v_curitm := v_curblk||'.'||get_item_property(v_curitm,nextitem); -- on récupère l item suivant
if get_item_property(v_curitm,<some property>) = 'TRUE' then
--- I can do something.... or adding more conditions if then etc...
end if;
END LOOP;
EXIT WHEN v_curblk = get_form_property(:SYSTEM.CURRENT_FORM,last_block); -- on sort losrqu on arrive au dernier block
v_curblk := get_block_property(v_curblk, nextblock); -- on passe au block suivant
END LOOP;
END;In my current project we work on quite huge forms which can have a consequent number of blocks and items.
And we must be very careful regarding performance issues as these forms are accessed via LAN and WAN.
So my question :
This method seems to be quite efficient as it goes thrue blocks and items sequences as they are defined in the builder comparing to go_block -> go_item ->do_something which can easily turn into nightmare-programming.
But I don't really know about network roundtrips with this kind of method.
Is everything done in the app server and then fetched to the client?
What triggers block-level and item-level can be fired during the execution of the loop ? and so one...
Thanks in advance for your advices on this matter.
Jean-YvesHmmm, I have to say I never bothered if Forms is in Socket mode or not; I enabled the network statistics, counted the roundtrips and looked for ways to get them lower (my old friend wireshark did also a good job regarding this) ;). But regarding the note Forms 6i uses Socket Connections by default, this might apply to 10g too (or the enhancement request was approved, who knows).
Frankly I am not entirely sure what Socket Mode means; I guess it's the mode the forms applet talks to the forms runtime; wheter it's stateful (via Sockets) or stateless (via HTTP / HTTPS) but this is just a wild guess, and I can't find informations on it quickly. I also enabled networkStats on my Developer Suite only, so I cannot tell if you can enable them on a full-fledged Application Server.
Anyway; as said I just counted the roundtrips and looked where I can avoid them when I made our application ready for WAN.
Another useful tool was Shunra VE Desktop which I used to simulate low bandwith networks with high latencys; I installed it on a virtual XP, started the application and tested how the Application performs. If something looked odd, I looked behind the scenes, built a little testform basing on the code behind and tried out various things; very often you can take advantage of the event bundling forms seems to make when you use several set_xyz calls as Francois also noted; e.g.
set_custom_property('bean_item', 1, 'PROPERTY', prop);
set_custom_property('bean_item', 1, 'PROPERTY', prop);
set_custom_property('bean_item', 1, 'PROPERTY', prop);
set_custom_property('bean_item', 1, 'PROPERTY', prop);
set_custom_property('bean_item', 1, 'PROPERTY', prop);
vRet := get_custom_property('bean_item', 1, 'PROPERTY);most certainly will cause just 1 roundtrip; but if you use get_custom_property in the middle of the set_custom_property calls you will encounter 2 roundtrips as forms needs to synchronize (you get a value from the bean so the forms runtime needs a response) with the forms applet whereas set_custom_property is a one-way-street which can be fired off simultaneous. The same applies to fbean.invoke and fbean.invoke_bool, fbean.invoke_char and the like. Of course if you are using more then one get_custom_property in this case the roundtrips will increase accordingly.
If you want to make use of event bundling make sure you fire off as much set_xyz as you can before forcing forms to synchronize (e.g. with get_xyz, or synchronize, create_timer,...)
cheers -
Hierarchial and blocked list displays
Hi friends,
when do we opt for hierachial list display and when do we opt for blocked list display?Hi Suresh,
Blocked ALV displays the data in blocks together in output. e.g. suppose you want to dsplay the data of header & item level. Then you candisplay the data of header records in first block & Item level data in another block on same output screen.
For hierarchical ALV check the below link
http://help.sap.com/saphelp_nw2004s/helpdata/en/6e/4e2941fa918739e10000000a1550b0/frameset.htm
& check this link also:
A new approach to ALV Programming
Hope this will help.
Regards,
Nitin. -
ALV like LIST GRID BLOCKED and HIRARCHIC using oops class SALV
Hi ,
Can any one let know me is it possible to display all the Flavours of ALV like LIST GRID BLOCKED and HIRARCHICAL
using oops class CL_GUI_ALV and class CL_SALV.
and the relevant events with respect to the type of ALV.
regardsHello
Have you had a look at the documents of Rich Heilman:
[ALV Object Model - Simple 2D Table - Event Handling|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cda3992d-0e01-0010-90b2-c4e1f899ac01]
[ALV Object Model - Hierarchical Sequential List - The Basics|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0f03986-046c-2910-a5aa-e5364e96ea2c]
[ALV Object Model - Simple 2D Table - The Basics|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/eac1fa0b-0e01-0010-0990-8530de4908a6]
Regards
Uwe -
One of the pages I am working on is blocked and I cannot delete/change items displayed there
One of the pages I am working on is blocked and I cannot delete/change items displayed there. I have unlocked all the layers but still cannot access the content on that page. Thoughts?
I'm using version 9.2.1. on a mac
I'm helping edit some maps for the company I work for. The pages are regular A3
The map part is not blocked, but the second page with the descriptions/text will not let me make any changes to it. I cannot select anything on the page including the images.
I am trying to edit the text provided and rearrange the page layout accordingly.
I thought this was a "layer" problem, but this does not seem to be the case. -
SQLIgnite tool configuration to capture Blocking and Deadlock in the instance
Dear All,
We have SQLIgite tool and I want capture the blocking and deadlocks happening in the server,
Please body suggest me how to configure the alert and how to find out the what queries causing the blocking and dead locks.
Thanks in advance all the help.Dear All,
We have SQLIgite tool and I want capture the blocking and deadlocks happening in the server,
Please body suggest me how to configure the alert and how to find out the what queries causing the blocking and dead locks.
Thanks in advance all the help.
This is SQL server forum please post your question in SQLignite forum or follow installation instruction which they might have provided.
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles -
Programs for alv block and hierarchy list
hi abapers,
can anyone pls mail me the simple program to get an idea of block and hierarchy list.
my mail id is <u>[email protected]</u>HI
go through below links
http://www.sapgenie.com/abap/controls/alvgrid.htm
http://www.sapfans.com/forums/viewtopic.php?t=58286
http://www.sapfans.com/forums/viewtopic.php?t=76490
http://www.sapfans.com/forums/viewtopic.php?t=20591
http://www.sapfans.com/forums/viewtopic.php?t=66305
Reward points if help full
Regards
Suresh.D
Maybe you are looking for
-
Infoobject change for extracting texts data.
Hi BW guys, Here is my requirement. I have one info object 'salesmen', which is already used in some other ODS & Cube's. Now I want to extract texts data for the object 'salesmen', for that I will need to change my infoobject (changes are : adding cr
-
I recieved my replacement while on vacation in Vegas, about five days ago. My new iPod has been kept nice and safe in it's case without any bumps that could damage it. Today, May 4th, I go to school with a perfectly working iPod. On my way home, kept
-
Strange File in Trash Cannot be Deleted
I have this file in my trash: "␀␀␀õ␀␀.␀␀" I am unable to work out where it came from. It has been there for several weeks and will not delete with the usual means mentioned in the forums. I have also tried Trash It without success. Does anyone recogn
-
Oracle 8i Lite Sql*Plus error
When attempting to connect to Sql*Plus I get the error ORA-21526 in an infinite loop. Any ideas how to get around it? I am running under Windows 98. null
-
We have installed a trial version of Photoshop Elements and plan to do so for Premier Elements. However, for security reasons, it is of no use to us unless we can install and use it standalone (not linked to cloud, mobile, Microsoft, Adobe, etc.). Ca